#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Location
    Isle of dogs
    Posts
    68
    Rep Power
    10

    Wink wxPython: stronge beyond belief


    wxPython Hello world behaviour in Windows

    This seems very strange but the most simplest examples of wxPython has strange behaviour on 2 different systems running Windows but is ok on Linux.

    The problem, while I move the applications windows it looks like it leaves behind copies of itself, you get this effect sometimes when a window hangs or if windows slows down. It is nothing I am doing wrong, I just want to know how to do it right. I am using python23 and 2.5.2.8 so there should be no problem.

    from wxPython.wx import *

    class MyApp(wxApp):
    def OnInit(self):
    frame = wxFrame(NULL, -1, "Hello from wxPython")
    frame.Show(true)
    self.SetTopWindow(frame)
    return true

    app = MyApp(0)
    app.MainLoop()
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    I don't have a problem with 2.4.2.4. Your sample is nice and smooth.

    (I didnt upgrade because of reported problems with Boa.)

    grimey
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Location
    Isle of dogs
    Posts
    68
    Rep Power
    10

    I found out the problem


    My applicaition works ok if I don't have the IDLE up while I am executing it. Thanks anyway

IMN logo majestic logo threadwatch logo seochat tools logo