FindWindowById returns None..... ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Soren

    FindWindowById returns None..... ?

    Hi,

    I'm trying to split my GUI into several files since its beginning to
    become a bit large.. I've placed a panel class inside gui2.py, but it
    needs some information from a panel in gui1.py... if I import gui1 in
    gui2 and try to find the panel by its ID, (using the Id generated in
    gui1) I get a None value returned?? using findwindowbyid in gui1 on
    the same ID works fine..

    I'm guessing i'm doing this the wrong way, can anyone comment on this?

    Thanks,
    Soren
  • Soren

    #2
    Re: FindWindowById returns None..... ?

    On Jan 10, 9:43 am, Soren <soren.skou.nie l...@gmail.comw rote:
    Hi,
    >
    I'm trying to split my GUI into several files since its beginning to
    become a bit large.. I've placed a panel class inside gui2.py, but it
    needs some information from a panel in gui1.py... if I import gui1 in
    gui2 and try to find the panel by its ID, (using the Id generated in
    gui1) I get a None value returned?? using findwindowbyid in gui1 on
    the same ID works fine..
    >
    I'm guessing i'm doing this the wrong way, can anyone comment on this?
    >
    Thanks,
    Soren
    Wops.. and I'm using wxPython :)

    Comment

    • Tim Roberts

      #3
      Re: FindWindowById returns None..... ?

      Soren <soren.skou.nie lsen@gmail.comw rote:
      >
      >I'm trying to split my GUI into several files since its beginning to
      >become a bit large.. I've placed a panel class inside gui2.py, but it
      >needs some information from a panel in gui1.py... if I import gui1 in
      >gui2 and try to find the panel by its ID, (using the Id generated in
      >gui1) I get a None value returned?? using findwindowbyid in gui1 on
      >the same ID works fine..
      >
      >I'm guessing i'm doing this the wrong way, can anyone comment on this?
      Post enough code so we can see how you are doing it. Your description
      isn't specific enough; there are several ways to do it, some right, some
      wrong...
      --
      Tim Roberts, timr@probo.com
      Providenza & Boekelheide, Inc.

      Comment

      Working...