[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

FindWindowById returns None..... ?

Soren

1/10/2008 8:44:00 AM

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
2 Answers

Soren

1/10/2008 8:44:00 AM

0

On Jan 10, 9:43 am, Soren <soren.skou.niel...@gmail.com> wrote:
> 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 :)

Tim Roberts

1/12/2008 5:49:00 AM

0

Soren <soren.skou.nielsen@gmail.com> wrote:
>
>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.