[Tutor] Trouble with "RuntimeError: underlying C/C++ object has been deleted".

2007-04-17 Thread Lawrence Shafer
Hello List, I am just learning Python/PyQt4, and have a problem I cannot figure out. Here's what happens. Traceback (most recent call last): File "iac.py", line 124, in on_actionOpen_triggered self.open() File "iac.py", line 66, in open if self.isUntitled and self.textBrowser.documen

[Tutor] Trouble with "RuntimeError: underlying C/C++ object has been deleted".

2007-05-03 Thread Lawrence Shafer
Hello List, I am just learning Python/PyQt4, and have a problem I cannot figure out. Here's what happens. Traceback (most recent call last): File "iac.py", line 124, in on_actionOpen_triggered self.open() File "iac.py", line 66, in open if self.isUntitled and self.textBrowser.

[Tutor] underlying C/C++ object has been deleted

2007-10-24 Thread Lawrence Shafer
I am trying to convert a program with hand coded QT over to using UI files from QT Designer. I am getting the error below and do not understand what's going on. I have a feeling I need to add self. to something in here, but I'm not sure what. Is this enough code for you to see whats going on??

Re: [Tutor] underlying C/C++ object has been deleted

2007-10-25 Thread Lawrence Shafer
has something to do with some stupid way I'm initializing the iac_ui.py file. Like I said, I'm not used to QTDesigner and complex programs like this. Again, any help appreciated! Lawrence Shafer wrote: > I am trying to convert a program with hand coded QT over to using UI > file

[Tutor] os.sys

2007-10-28 Thread Lawrence Shafer
Why doesn't this fill otp with the output of ls?? (I know python has it's own file tools, I'm just playing around ;) import os cmd="""ls""" otp=os.system(cmd) print otp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tuto

[Tutor] importing

2007-11-04 Thread Lawrence Shafer
What is the difference between "from name import *" and "import name"? The reason I ask is because I was using the former, and switched to the latter only to find out "NameError: global name 'name' is not defined" and I think using the latter is going to fix another problem I have. I just want

[Tutor] comparing dates

2007-11-23 Thread Lawrence Shafer
How would I compare these two dates and extract the difference in H:M:S?? 22 Nov 2007 18:54:07 23 Nov 2007 23:24:23 Cheers, Lawrence ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor