Changeset 268

Show
Ignore:
Timestamp:
02/19/08 19:35:04 (11 months ago)
Author:
bob
Message:
 
Location:
artub
Files:
3 added
6 modified

Legend:

Unmodified
Added
Removed
  • artub/StyledTextCtrl_2.py

    r197 r268  
    2727              'size2': 8, 
    2828             } 
     29elif wx.Platform == "__WXMAC__": 
     30    faces = { 'times': 'Times', 
     31              'mono' : 'Monaco', 
     32              'helv' : 'Helvetica', 
     33              'other': 'Courier New', 
     34              'size' : 12, 
     35              'size2': 10, 
     36             } 
    2937else: 
    3038    faces = { 'times': 'Times', 
    31               'mono' : 'Courier', 
     39              'mono' : 'Courier New', 
    3240              'helv' : 'Helvetica', 
    3341              'other': 'new century schoolbook', 
     
    136144 
    137145        # Global default styles for all languages 
    138         self.StyleSetSpec(stc.STC_STYLE_DEFAULT,     "face:%(helv)s,size:%(size)d" % faces) 
     146        self.StyleSetSpec(stc.STC_STYLE_DEFAULT,     "face:%(mono)s,size:%(size)d" % faces) 
    139147        self.StyleClearAll()  # Reset all to be like the default 
    140148 
    141149        # Global default styles for all languages 
    142         self.StyleSetSpec(stc.STC_STYLE_DEFAULT,     "face:%(helv)s,size:%(size)d" % faces) 
     150        self.StyleSetSpec(stc.STC_STYLE_DEFAULT,     "face:%(mono)s,size:%(size)d" % faces) 
    143151        self.StyleSetSpec(stc.STC_STYLE_LINENUMBER,  "back:#C0C0C0,face:%(helv)s,size:%(size2)d" % faces) 
    144152        self.StyleSetSpec(stc.STC_STYLE_CONTROLCHAR, "face:%(other)s" % faces) 
     
    148156        # Python styles 
    149157        # Default  
    150         self.StyleSetSpec(stc.STC_P_DEFAULT, "fore:#000000,face:%(helv)s,size:%(size)d" % faces) 
     158        self.StyleSetSpec(stc.STC_P_DEFAULT, "fore:#000000,face:%(mono)s,size:%(size)d" % faces) 
    151159        # Comments 
    152160        # self.StyleSetSpec(stc.STC_P_COMMENTLINE, "fore:#007F00,face:%(other)s,size:%(size)d" % faces) 
     
    154162        self.StyleSetSpec(stc.STC_P_NUMBER, "fore:#007F7F,size:%(size)d" % faces) 
    155163        # String 
    156         self.StyleSetSpec(stc.STC_P_STRING, "fore:#7F007F,face:%(helv)s,size:%(size)d" % faces) 
     164        self.StyleSetSpec(stc.STC_P_STRING, "fore:#7F007F,face:%(mono)s,size:%(size)d" % faces) 
    157165        # Single quoted string 
    158         self.StyleSetSpec(stc.STC_P_CHARACTER, "fore:#7F007F,face:%(helv)s,size:%(size)d" % faces) 
     166        self.StyleSetSpec(stc.STC_P_CHARACTER, "fore:#7F007F,face:%(mono)s,size:%(size)d" % faces) 
    159167        # Keyword 
    160168        self.StyleSetSpec(stc.STC_P_WORD, "fore:#00007F,bold,size:%(size)d" % faces) 
     
    170178        self.StyleSetSpec(stc.STC_P_OPERATOR, "bold,size:%(size)d" % faces) 
    171179        # Identifiers 
    172         self.StyleSetSpec(stc.STC_P_IDENTIFIER, "fore:#000000,face:%(helv)s,size:%(size)d" % faces) 
     180        self.StyleSetSpec(stc.STC_P_IDENTIFIER, "fore:#000000,face:%(mono)s,size:%(size)d" % faces) 
    173181        # Comment-blocks 
    174182        self.StyleSetSpec(stc.STC_P_COMMENTBLOCK, "fore:#7F7F7F,size:%(size)d" % faces) 
  • artub/artub.py

    r267 r268  
    77set_sys_path() 
    88 
     9print "Running Artub version", __version__ 
    910import gettext 
    1011gettext.install('artub', 'locale', unicode=1) 
    1112import locale 
    1213import wx 
     14print "Using wxPython", wx.VERSION_STRING 
    1315try: 
    1416    info = wx.Locale.GetLanguageInfo(wx.Locale.GetSystemLanguage()) 
  • artub/locale/fr/LC_MESSAGES/artub.po

    r267 r268  
    948948#: propertiesbar/propertyeditors.py:1045 
    949949msgid "Inherited from " 
    950 msgstr "Hérité de" 
     950msgstr "Hérité de " 
    951951 
    952952#: redistributable.py:12 
  • artub/plugins/basic_templates/monkey2.py

    r250 r268  
    2424    def on_look(self): 
    2525        if self.walk_point: 
    26             game.ego.walk_to(self.walk_point.x, self.walk_point.y) 
    27              
    28         game.ego.say(self.description) 
     26            ego.walk_to(self.walk_point.x, self.walk_point.y) 
     27             
     28        ego.say(self.description) 
    2929         
    3030    def on_hand(self): 
    3131        if self.walk_point: 
    32             game.ego.walk_to(self.walk_point.x, self.walk_point.y) 
     32            ego.walk_to(self.walk_point.x, self.walk_point.y) 
    3333                     
    3434    def on_lose_focus(self, newobj): 
     
    4040    def on_walk(self): 
    4141        if self.walk_point: 
    42             game.ego.walk_to(self.walk_point.x, self.walk_point.y) 
     42            ego.walk_to(self.walk_point.x, self.walk_point.y) 
    4343                     
    4444    def on_left_button_down(self): 
  • artub/poujol/__init__.py

    r266 r268  
    328328         
    329329        if isinstance(parent, Sprite): 
    330             print >> sys.__stderr__, "set parent", parent 
     330            # print >> sys.__stderr__, "set parent", parent 
    331331            self.parent = parent 
    332332         
     
    460460         
    461461    def set_boxes(self): 
     462        print "set_boxes", self, len(self.contours), hasattr(self, "regions"), self.boxes 
    462463        if len(self.contours): return 
    463464        for i in self.boxes: 
    464465            c = Contour(i.points)  
     466            print "adding contour", c 
    465467            self.contours.append(c) 
     468        print self.to_string() 
    466469        center = self.get_center() 
    467470        self.center = (center.x, center.y) 
     
    553556        Sprite.__init__(self, parent) 
    554557        poujolRegion.__init__(self, *args) 
    555         self.boxes = [] 
     558        #self.boxes = [] 
    556559        self.active = True 
    557560 
  • artub/startuppage.py

    r266 r268  
    9999            print "<p>&nbsp;</p>" 
    100100            self.footer() 
    101             open(os.path.join(wx.GetApp().artub_path, 'startup', 'dynamic.html'), 'w').write(self.restore_outputs()) 
     101            s = self.restore_outputs().encode('iso-8859-1') 
     102            open(os.path.join(wx.GetApp().artub_path, 'startup', 'dynamic.html'), 'w').write(s) 
    102103        except: 
    103104            raise 
revenir en haut de la page