[wxPython-users] Binding button even with another class

Mark Erbaugh mark at microenh.com
Thu Feb 7 12:57:06 PST 2008


On Thu, 2008-02-07 at 12:21 -0800, Varsha Purohit wrote:
>         I have a simple application where there is a frame which has
> one image and a zoomin button. when i am clicking on the zoomin button
> it should call another class which will display another version of the
> image saved in local copy which is zoomed. But i am not getting any
> error but even the new image is not being displayed. can you please
> check and tell me wher ei am doing mistake. Actually when i click
> zoomin another window should come on top of the frame which will have
> scrollbars and show the new zoomed image. 

You need to call the Show() method of the new frame.

    def resizeImage(self, event):
        panel = ScrolledWindow(self).Show()






More information about the wxpython-users mailing list