Hi Robin,
The Same code is working fine in Solaris machine. But in
Windows 2000, all the controls are displayed at top left corner.
I think that Przemys?aw G. Gawro?ski also getting same kind of
problem[Linux/Windows], but from different approach.
I modified this code little bit, and tried again. It was not working in
Windows 2000.
but it is working excellent in Solaris. When i click on "Submenu1", it
crashed and
"Program error" dialog box appears with below message:-
"python.exe has generated errors and will be closed by windows....
An error log is being created."
Where this errors will be logged in windows?
The version of wxPython I'm using is 2.3.0. Same across OS.
Do I need to update any dlls?
The modified new code[notebook_test.py] will try to create variable amount
ctrls in same panel.
In this sample code, I create the ScrolledWindow as child of NoteBook. I
show/hide this
window along with RemovePage/AddPage logic for show/hide a page in NoteBook.
There is no need
of extra panel as you said.
REF: attached sample code
TIA,
Maharajan.
notebook_test.ZIP (2.12 KB)
ยทยทยท
-----Original Message-----
From: Mariappan, MaharajanX [mailto:m_mariappanX@trillium.com]
Sent: Tuesday, February 12, 2002 4:07 PM
To: 'wxpython-users@lists.wxwindows.org'
Subject: RE: [wxPython] Radiobox type submenus.
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Saturday, February 09, 2002 3:19 AM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] Radiobox type submenus.
My Question in that coding is that i want to register single function for
all 3 submenu events. But I cann't get the submenuitem
object inside that, see OnSubmenuClick()
self.mainmenu.FindItemById(event.GetId())
It worked fine. Thanks
2) I wud like to hide a particular page along with teh nodebook tab in
wxNoteBook control using page.Show(false).
If you want to show/hide the notebook tab and its contents then use
RemovePage and InsertPage. If you want to just hide the contents of a page
then put an extra panel in the notebook as the page, and your real panel
will then be a child of this panel. You can then just Show/Hide the real
panel.
Still I cudn't come up the correct solution for this problem. I've attached
the sample
code along with this mail.
a) i first create ctrls in scrolledWindow. Attach this window as child of a
panel which is a
page of NoteBook.
--> Here, if the ctrls are very less, [no ctrls] i page strinks to very
small size box at top -left corner. So i cudn't SetScrollBar.
b) If i try to update any panel, all the ctrls are displayed at top-left
corner.
If you try to run the attached code, and click on submenu1-3, you can see
the ctrls going to top-left corner.
I'm not getting where i'm wrong in using noteBook.
TIA,
Maharajan
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users