コード例 #1
0
ファイル: splash.py プロジェクト: HieronymusCH/TaskCoach
 def __init__(self):
     splash = icons.catalog['splash']
     if i18n.currentLanguageIsRightToLeft():
         # RTL languages cause the bitmap to be mirrored too, but because
         # the splash image is not internationalized, we have to mirror it
         # (back). Unfortunately using SetLayoutDirection() on the 
         # SplashWindow doesn't work.
         bitmap = wx.BitmapFromImage(splash.getImage().Mirror())
     else:
         bitmap = splash.getBitmap()
     super(SplashScreen, self).__init__(bitmap,
         wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_TIMEOUT, 4000, None, -1)
コード例 #2
0
ファイル: splash.py プロジェクト: dfraser74/taskcoach
 def __init__(self):
     splash = icons.catalog['splash']
     if i18n.currentLanguageIsRightToLeft():
         # RTL languages cause the bitmap to be mirrored too, but because
         # the splash image is not internationalized, we have to mirror it
         # (back). Unfortunately using SetLayoutDirection() on the
         # SplashWindow doesn't work.
         bitmap = wx.BitmapFromImage(splash.getImage().Mirror())
     else:
         bitmap = splash.getBitmap()
     super(SplashScreen,
           self).__init__(bitmap,
                          wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
                          4000, None, -1)
コード例 #3
0
 def __init__(self, parent, text='', *args, **kwargs):
     kwargs['style'] = kwargs.get('style', 0) | wx.TE_MULTILINE
     if not i18n.currentLanguageIsRightToLeft():
         # Using wx.TE_RICH will remove the RTL specific menu items
         # from the right-click menu in the TextCtrl, so we don't use 
         # wx.TE_RICH if the language is RTL.
         kwargs['style'] |= wx.TE_RICH | wx.TE_AUTO_URL
     super(MultiLineTextCtrl, self).__init__(parent, *args, **kwargs)
     self.__initializeText(text)
     self.Bind(wx.EVT_TEXT_URL, self.onURLClicked)
     try:
         self.__webbrowser = webbrowser.get()
     except:
         self.__webbrowser = None
     self.MacCheckSpelling(self.CheckSpelling)
コード例 #4
0
ファイル: textctrl.py プロジェクト: casics/extractor
 def __init__(self, parent, text='', *args, **kwargs):
     kwargs['style'] = kwargs.get('style', 0) | wx.TE_MULTILINE
     if not i18n.currentLanguageIsRightToLeft():
         # Using wx.TE_RICH will remove the RTL specific menu items
         # from the right-click menu in the TextCtrl, so we don't use
         # wx.TE_RICH if the language is RTL.
         kwargs['style'] |= wx.TE_RICH | wx.TE_AUTO_URL
     super(MultiLineTextCtrl, self).__init__(parent, *args, **kwargs)
     self.__initializeText(text)
     self.Bind(wx.EVT_TEXT_URL, self.onURLClicked)
     try:
         self.__webbrowser = webbrowser.get()
     except:
         self.__webbrowser = None
     self.MacCheckSpelling(self.CheckSpelling)