Пример #1
0
class CodingCtrl(wx.SplitterWindow):
    def __init__(self, parent, winId):
        wx.SplitterWindow.__init__(self, parent, winId)
        self.SetMinimumPaneSize(500)

        self.txtCtrl = CodingTextCtrl(self, winId)
        marginCtrl = CodeMarginCtrl(self, -1)
        marginCtrl.addCode('test category')
        self.SplitVertically(self.txtCtrl, marginCtrl)

    def SetValue(self, v):
        return self.txtCtrl.SetValue(v)

    def setCodes(self, cs):
        self.txtCtrl.setCodes(cs)

    def setMemos(self, ms):
        self.txtCtrl.setMemos(ms)