[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] From/Import, proper namespace,etc
From:       JPolk <jpolk5001 () yahoo ! com>
Date:       2012-05-21 17:20:23
Message-ID: 1337620823484-4975428.post () n6 ! nabble ! com
[Download RAW message or body]

Thanks Phil,
...(yes, I see the design flaw you speak of...was doing a bit of testing)

Just to add for prosterity,...your answer had a small typo...just needs a
".connect"
statement in there....so for others who may find this later,..the statement
is:

      self.button.clicked.connect(lambda checked: DoTest2(self))  

I did find another method (better design? dunno ;-) and that is to have the
button connect
statement call a local (in file A) function which in turn calls B.function()

Using,
     from B import *
     .....
     self.Button_02.clicked.connect(self.DoTest1)
     ....

            def DoTest1(self):
                print("DoTest1")
                status = DoTest2(self)
                print status


Thanks again,


--
View this message in context: \
http://python.6.n6.nabble.com/From-Import-proper-namespace-etc-tp4975143p4975428.html \
Sent from the PyQt mailing list archive at Nabble.com. \
_______________________________________________ PyQt mailing list    \
PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic