[PyQt] connection between 2 widget

Massimo Di Stefano massimodisasha at yahoo.it
Fri Jun 19 00:24:44 BST 2009


Hi All,

i'm tring to connect 2 widget but i havo problems to know how to do it.

i can reproduce my problem with an example :

W-1 (spinbox + button)   [ it is a main app, and has in the menu bar  
an action to open W-2]

W-2 (line edit + button)

i run W-1, pressing its button it increase the spinbox value,
then pressing the action from the menu -> open W-2


W-2 , at its start, read value from W-1 -- pressing the W-2 button  
process W-1 value and print it .

my problem :

i need that everitime i change the W-1  value ...
... when i press button in W-2  it will process the W-1(changed value)



i hopemy explanation is clear.

here a paste of 2 widget :

http://www.geofemengineering.it/data/paste.txt


i uploasded the file to reproduce this example on :


http://www.geofemengineering.it/data/fg.zip

please, thanks for any help!



regards,


Massimo.








More information about the PyQt mailing list