I am trying to make my first wxpython application and I've run into a
problem trying to get the sizers to work.
Right now I just have 3 files. They are all located at
You can view those to get an overview of the app if needed. I will just
post the class in question in this email.
Now I think I have the sizers setup correctly, but I get all of the text
in the upper left and it all overlays.
Thanks
Mike
from wxPython.wx import *
class torrentFrame(wxScrolledWindow):
def __init__(self, parent, fileName, id = -1, size = wxDefaultSize):
wxScrolledWindow.__init__(self, parent, id, wxPoint(0, 0), size,
wxSUNKEN_BORDER)
text = wxStaticText(self, -1, fileName, (200, 150))
sizer = wxFlexGridSizer(cols = 8, vgap = 0)
sizer.AddGrowableCol (0)
fileDetails = wxStaticText(self, -1, 'Details')
sizer.Add(fileDetails, 0, wxALIGN_BOTTOM)
sizer.Add(wxStaticText(self, -1, ' '))
test2 = wxStaticText(self, -1, 'Test')
sizer.Add(test2, 0, wxALIGN_BOTTOM)
sizer.Add(wxStaticText(self, -1, ' '))
test3 = wxStaticText(self, -1, 'Test2')
sizer.Add(test3, 0, wxALIGN_BOTTOM)
sizer.Add(wxStaticText(self, -1, ' '))
exitText = wxStaticText(self, -1, 'Exit',)
sizer.Add(exitText, 0, wxALIGN_BOTTOM)