Sunday, June 15, 2008

Does Python or PyQt3 have a pox on C++?

This is illogical as I've seen Python get.

Terry@dixie$ cd code/C++/src/qsm                                           0:11
Terry@dixie$ python                                                        0:11
Python 2.5.2 (r252:60911, Apr 17 2008, 16:34:02) 
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> from qt import *
>>> QDialog
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'QDialog' is not defined
>>> 
Terry@dixie$ cd $HOME                                                      0:11
Terry@dixie$ python                                                        0:11
Python 2.5.2 (r252:60911, Apr 17 2008, 16:34:02) 
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> from qt import *
>>> QDialog
<class 'qt.QDialog'>
>>> 


Maybe there is a reason for this and I've just got to much of a headache from today to notice it, but WTF man? lol. It's almost as if Python has a pox on running a script in that directory :\




I wanted to test an idea for a dialog quickly, so I started a new python script. Only to have NameError's whenever trying to reference a member of the qt module. So i copied over one of the py-qt3 example programs that came pre-installed and tried that, same barfing results.

Then I tried interactively with python, no go -- changed directories to home and tried both, and they fucking work !!!!


I don't know whether I should laugh out loud or start hex editing maliciously lol.

No comments:

Post a Comment