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)
def __init__(self, parent, plugin, controller): ExpandoTextCtrl.__init__(self, parent, size=wx.DefaultSize, style=wx.WANTS_CHARS) _ContentAssistTextCtrlBase.__init__( self, SuggestionSource(plugin, controller))
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)
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()
def __init__(self, parent, plugin, controller): ExpandoTextCtrl.__init__(self, parent, size=wx.DefaultSize, style=wx.WANTS_CHARS) _ContentAssistTextCtrlBase.__init__(self, SuggestionSource(plugin, controller))