コード例 #1
0
ファイル: contentassist.py プロジェクト: charles20cent/RIDE
 def __init__(self, parent, plugin, controller):
     ExpandoTextCtrl.__init__(self, parent, size=wx.DefaultSize,
                              style=wx.WANTS_CHARS|wx.TE_NOHIDESEL)
     _ContentAssistTextCtrlBase.__init__(self, SuggestionSource(plugin, controller))
     self.SetBackgroundColour(context.POPUP_BACKGROUND)
     # self.SetOwnBackgroundColour(Colour(200, 222, 40))
     self.SetForegroundColour(context.POPUP_FOREGROUND)
コード例 #2
0
 def __init__(self, parent, plugin, controller):
     ExpandoTextCtrl.__init__(self,
                              parent,
                              size=wx.DefaultSize,
                              style=wx.WANTS_CHARS)
     _ContentAssistTextCtrlBase.__init__(
         self, SuggestionSource(plugin, controller))
コード例 #3
0
    def __init__(self,
                 parent,
                 id=-1,
                 value="",
                 style=wx.TE_READONLY | wx.BORDER_NONE,
                 name=u"BodyText"):
        ExpandoTextCtrl.__init__(self, parent, id, value, wx.DefaultPosition,
                                 wx.DefaultSize, style, wx.DefaultValidator,
                                 name)
        # self.SetBackgroundColour(wx.GREEN)
        # self.UseExtraHeight(False)

        self.Bind(wx.EVT_MOUSE_EVENTS, self.OnMouseEvent)
        self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
コード例 #4
0
    def __init__(self, parent, pos=wx.DefaultPosition):
        ExpandoTextCtrl.__init__(self, parent, pos = pos, style = wx.BORDER_NONE)

        # Set Font Syle
        self.SetFontStyle(fontColor=wx.Colour(0, 0, 0),
                          fontFace=u'微软雅黑',
                          fontSize=13,
                          fontBold=False, fontItalic=False, fontUnderline=False)

        # Set Height (8 lines)
        height = 8 * self.charHeight
        self.InitHeight = height
        self.SetMinSize((-1, self.InitHeight))
        self.SetSize((-1, self.InitHeight))

        self.SetFocus()
コード例 #5
0
ファイル: contentassist.py プロジェクト: scathaig/RIDE
 def __init__(self, parent, plugin, controller):
     ExpandoTextCtrl.__init__(self, parent, size=wx.DefaultSize,
                              style=wx.WANTS_CHARS)
     _ContentAssistTextCtrlBase.__init__(self,
                                         SuggestionSource(plugin,
                                                          controller))