Hi I have been beginning to look at SWIG for wrapping some other wx
functionality that is only in C at the moment to get some other things
not currently available in wxPython. I have been interested in a some
capability to interface with scanners with TWAIN. Robin, can you point
me examples of wrapping wx functionality with SWIG in the repository
anywhere so I have somewhat something to follow. Many thanks.
Regards,
David
Robin Dunn wrote:
Paul Sijben wrote:
>Hi all,
>>
>I can create and display a panel from XRC no problem.
>>
>Now I want to go to the advanced stuff, I have defined several panels in
>my XRC file and at some point I want to display one of the other panel
>descriptions in its stead.
>>
>I already found out that simply doing a new LoadPanel with the same
>parameters except for the object name does not work.
>Same with a Destroy() on the result of the earlier LoadPanel action.
>>
>Now the panel is used as the content of a Notebook tab so that further
>complicates matters, unless I am mistaken of course.
>>
>What is the way that does yield the desired effect?
It depends on the situation, but one way is to load all panels and
Hide() the ones you don't need at the moment. When you need to switch
then do a Show of the new one and a Hide on the old one. Depending on
how you are doing your layout then you may need to do something to get
the new panel sized and positioned right.
For notebook tabs you will need to remove the page from the notebook and
insert the new one in it's place.
To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org