Changeset 139

Show
Ignore:
Timestamp:
Thu Dec 14 07:19:55 2006
Author:
manatlan
Message:

- the french online help should now open on win platforms

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/common.py

    r138 r139  
    60 60     return False  
    61 61  
      62 import os,sys  
      63 def openURL(url):  
      64     assert type(url)==unicode  
      65     if sys.platform[:3].lower() == "win":  
      66         os.startfile(url)  
      67     else:  
      68         runWith(["gnome-open","mozilla-firefox","firefox","konqueror","epiphany","galeon"],url,False)  
      69  
      70  
    62 71 if __name__ == "__main__":  
    63 72     #~ print JBrout.home  
  • trunk/jbrout.py

    r136 r139  
    63 63  
    64 64  
    65   from common import cd2rd,cd2d,format_file_size_for_display,runWith # for selecteur  
      65 from common import cd2rd,cd2d,format_file_size_for_display,runWith,openURL # for selecteur  
    65 65 from commongtk import AlbumCommenter,InputBox,MessageBox,InputQuestion,Img  
    66 66 from db import JBrout,Buffer  
     
    1774 1774         # "START" is the command start on win32 to run a program or url  
    1775 1775         # it's in uppercase because on linux, there is "start" too  
    1776           runWith(["STARt","gnome-open","mozilla-firefox","firefox","konqueror","epiphany","galeon"],u"http://jbrout.free.fr/aide/",False)  
      1776         openURL(u"http://jbrout.free.fr/aide/")  
    1776 1776  
    1777 1777     def on_a_propos_activate(self, widget, *args):