Torsten wrote:
> Try something like this (solution 1):
>
> class MyLineEdit(QLineEdit):
> ~# keeps track of all instances of MyLineEdit,
> ~# but is buggy if instances are removed
> ~allinstances = []
> ~def __init__(self, parent):
> ~self.allinstances.append(self)
> ~
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bill Burns wrote:
| On Saturday 25 September 2004 10:28 am, Michael Andrews wrote:
|
|>I'm a little rusty, but try this:
|>
|>def setLineEdit(self):
|>self.le0.set("hi")
|>self.le1.set("hi")
|>self.le2.set("hi")
|>sel
On Saturday 25 September 2004 11:46 am, Bill Burns wrote:
> The original code again:
Sorry...that wasn't the original code I had first posted!! I made Michael's
changes and added a change of my own and sent the wrong one..
Here is the original code that I had first posted:
#!/usr/bin/env pyt
On Saturday 25 September 2004 10:28 am, Michael Andrews wrote:
> I'm a little rusty, but try this:
>
> def setLineEdit(self):
> self.le0.set("hi")
> self.le1.set("hi")
> self.le2.set("hi")
> self.le3.set("hi")
>
Michael,
Thank you this works and it gets me in th
I'm a little rusty, but try this:
def setLineEdit(self):
self.le0.set("hi")
self.le1.set("hi")
self.le2.set("hi")
self.le3.set("hi")
On Sat, 2004-09-25 at 10:16, Bill Burns wrote:
> I'm trying to make one button click set the text to "hi" on
I'm trying to make one button click set the text to "hi" on all four LineEdits
in the code below. So far I'm able to pass the string "hi" to the function
set() in the class MyLineEdit but it will not set the text of the LineEdits.
What am I doing wrong?
I'm not a programmer. I just found PyQt