Send a sample please.
Code follows (first 3 classes are pages in the notebook; 4th class is a
dialog window containing the notebook in which I append the pages)...:
class IDPage(wxWindow):
## First page in the notebook
def __init__(self, parent, id = -1, style = wxSIMPLE_BORDER):
wxWindow.__init__(self, parent, id)
self.SetBackgroundColour(wxNamedColour("LIGHT GREYwxPoint(3,3))
###### etc.... (2 more classes/pages similar to this)
class AddyInput(wxDialog):
def __init__(self, parent, ID, title):
##Main notebook class
wxDialog.__init__(self, parent, ID, title, wxPoint(100,100),
wxSize(560, 441))
self.inputbook = wxNotebook(self, ID_INPUTMAIN)
self.page1 = IDPage(self)
self.page1.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
self.inputbook.AddPage(self.page1, ' Identity ')
self.page2 = WebInfoPage(self)
self.page2.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
self.inputbook.AddPage(self.page2, ' Web Info ')
self.page3 = Phone_AddressInfoPage(self)
self.page3.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
self.inputbook.AddPage(self.page3, ' Address and Phone ')
How is the notebook positioned relative to
the dialog?
notebook is given defaults... in Windows this doesn't seem to matter.. in
linux, it does matter as the default size is about 10x10 pixels; thus, in
linux I have resized the notebook window and tried positioning it anywhere
from 20 to 100 pixels below the top of the Dialog. In the most extreme
case, I get a 'notebook' window with empty space between its frame and the
surrounding frame of about 100 pixels on all sides, but still no tabs.
Are the page windows children of the notebook or children of
the dialog?
not specified. In Windows it doesn't seem to matter though- seems to assign
the pages automatically to the notebook. as this may be different in Linux,
I'm off to try assigning the individual pages to the notebook as their
parent. fingers crossed.
thanks.
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users