Hello, following code:
#!/usr/bin/env python
import wx
import wx.stc
class MySplitter(wx.SplitterWindow):
def __init__(self, parent, ID):
wx.SplitterWindow.__init__(self, parent, ID,
style = wx.SP_LIVE_UPDATE
)
class StcHistory(wx.stc.StyledTextCtrl):
def __init__(self, parent):
wx.stc.StyledTextCtrl.__init__(self, parent, -1)
class StcMemory(wx.stc.StyledTextCtrl):
def __init__(self, parent):
wx.stc.StyledTextCtrl.__init__(self, parent, -1)
class ExtFrame(wx.Frame):
def __init__(self, *args, **kwargs):
wx.Frame.__init__(self, *args, **kwargs)
self.splitter = MySplitter(self, -1)
self.stcmemory = StcMemory(self.splitter)
self.panel = wx.Panel(self.splitter)
self.splitter.SetMinimumPaneSize(20)
self.splitter.SplitHorizontally(self.stcmemory, self.panel,
-100)
self.subsplitter = MySplitter(self.panel, -1)
self.stchistory = StcHistory(self.subsplitter)
self.subpanel = wx.Panel(self.subsplitter)
self.subsplitter.SetMinimumPaneSize(20)
self.subsplitter.SplitVertically(self.stchistory,
self.subpanel, -100)
def main():
app = wx.App(0)
frame = ExtFrame(None, -1, "wxExt")
frame.Show(True)
app.MainLoop()
if __name__ == "__main__":
main()
I only see some compressed graphics on the left upper part. What is
wrong in this code? Thank you in advnance!
wxgtk, 2.8.10.1