Problems with PyQt

2005-01-28 Thread Michael McGarry
Hi, I am having a problem making a widget appear. I have 5 widgets which are windows with no parents. 3 of the widgets appear without a problem the other 2 widgets will not appear when I invoke widget.show() from within a handler for another widget. I am completely clueless as to why these 2 widge

Python vs. Perl

2004-12-11 Thread Michael McGarry
Hi, I am just starting to use Python. Does Python have all the regular expression features of Perl? Is Python missing any features available in Perl? Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Perl

2004-12-11 Thread Michael McGarry
[EMAIL PROTECTED] wrote: Christopher De Vries wrote: Roy Smith already touched on regular expressions, but as far as features go, I would say that the real difference between python and perl is not in the features, but in the philosophy. To help aid in this discussion, the following Python and Per

Hashes

2004-12-11 Thread Michael McGarry
Hi, Are there hashes in Python? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Hashes

2004-12-11 Thread Michael McGarry
Peter Hansen wrote: Michael McGarry wrote: Are there hashes in Python? Define hash. Or look at Python's 'dict' type, or the hash() function and decide for yourself if that's what you meant. -Peter Yes, I guess the dict type is what I am looking for. Thank you, Michael -- ht

Any books on PyQt

2004-12-12 Thread Michael McGarry
Hi, Do any books cover PyQt? Michael -- http://mail.python.org/mailman/listinfo/python-list

Best book on Python?

2004-12-12 Thread Michael McGarry
Hi, What is the best book covering Python? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Best book on Python?

2004-12-12 Thread Michael McGarry
I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the features including GUI in a reference style. Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-list

Problem with Qt

2004-12-12 Thread Michael McGarry
Hi, I am trying to show a radio button group on a window, but only the last radio button shows up. Anyone know why? Here is the code: from qt import * import sys a = QApplication(sys.argv) widget = QWidget() trafftype = QButtonGroup("Traffic Type", widget) poisson = QRadioButton("Poisson", trafft

Re: Problem with Qt

2004-12-12 Thread Michael McGarry
Thanks, I had just discovered Qt Designer. I will probably use this. It seems to work well. Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Best book on Python?

2004-12-12 Thread Michael McGarry
. Martelli published by O'Reilly. It has a section on Tkinter and many other things that you may find useful. ah On Mon, 13 Dec 2004, Rod Haper wrote: Michael McGarry wrote: I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the fea

Qt String Question

2004-12-12 Thread Michael McGarry
Hi, How do I convert from a qt.QString to a Python string? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Qt String Question

2004-12-12 Thread Michael McGarry
Michael McGarry wrote: Hi, How do I convert from a qt.QString to a Python string? Michael Apparently the ascii() method of QString does this. (I answered my own question). sorry for wasting newsgroup space. -- http://mail.python.org/mailman/listinfo/python-list

PyQt on MAC OS X

2004-12-13 Thread Michael McGarry
Hi, I'm trying to get PyQt up and running under Mac OS X 10.2.8, but can't get past configuring sip. I installed fink's qt3-3.2.3-2 and restarted my shells to get qt3's environment variables QTDIR and QMAKESPEC. I downloaded sip-4.1 from http://www.river-bank.demon.co.uk, unpacked it, ran pytho

Re: PyQt on MAC OS X

2004-12-13 Thread Michael McGarry
Kevin Walzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've assembled a binary installer for the native version of PyQt. See http://www.wordtech-software.com/pyqt-mac.html I built it on Panther. Not sure if it will work on Jaguar, but you're welcome to give it a try. Micha

Re: PyQt on MAC OS X

2004-12-13 Thread Michael McGarry
glenn andreas wrote: In article <[EMAIL PROTECTED]>, Michael McGarry <[EMAIL PROTECTED]> wrote: One problem is my Window created in Qt appears underneath all others on the screen and focus never goes completely onto this window. Kind of weird. Any ideas? If the application is

Re: PyQt on MAC OS X

2004-12-13 Thread Michael McGarry
whamoo wrote: Michael McGarry <[EMAIL PROTECTED]> wrote: thanks that did the trick!!! One problem is my Window created in Qt appears underneath all others on the screen and focus never goes completely onto this window. Kind of weird. Any ideas? You must use pythonw for graphics application

Re: Regular Expression

2004-12-14 Thread Michael McGarry
Binu K S wrote: You can do this without regular expressions if you like uptime='12:12:05 up 21 days, 16:31, 10 users, load average: 0.01, 0.02, 0.04' load = uptime[uptime.find('load average:'):] load 'load average: 0.01, 0.02, 0.04' load = load.split(':') load ['load average', ' 0.01, 0.02, 0.04

Regular Expression

2004-12-14 Thread Michael McGarry
Hi, I am horrible with Regular Expressions, can anyone recommend a book on it? Also I am trying to parse the following string to extract the number after load average. " load average: 0.04, 0.02, 0.01" how can I extract this number with RE or otherwise? Michael -- http://mail.python.org/mailm

Re: Regular Expression

2004-12-15 Thread Michael McGarry
Philippe C. Martin wrote: I'm struggling myself and have bought: "Mastering Regular Expressions" 2nd Edition, O'REILLY Jeffrey E. F. Friedl I covers the reg exp concepts + applications in various languages (mostly PERL but some Python also) Thank you everyone for the tips!! -- http://mail.python

Redirecting stdin, stdout, and stderr to a window

2004-12-16 Thread Michael McGarry
Hi, How do I redirect stdin, stdout and stderr to a window? I am using Qt for GUI. Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter vs wxPython

2004-12-27 Thread Michael McGarry
Esmail Bonakdarian wrote: My post wasn't complete, sorry for the additional post: ps: this is basically the same query as posted December 10 “Re: GUIs: wxPython vs. Tkinter (and others)” by Erik Johnson which really seemed to end up comparing PyQt (?) I recommend PyQt because of the easy to use d

Re: Tkinter vs wxPython

2004-12-28 Thread Michael McGarry
Definitely look at PyQt. It was the GUI framework I chose when going through the same process 3 weeks ago. I have to disagree with F.Geiger (sorry, F.Geiger), I think a GUI builder is a necessity. It saves you a lot of time. The alternative is to keep changing your code until your GUI looks as

PyQt on Mac OS X

2005-12-13 Thread Michael McGarry
Hi, I am using the default Python installation that comes with Mac OS X Tiger. I want to use the Qt module. How can I install the Qt module? Qt is already installed. Michael -- http://mail.python.org/mailman/listinfo/python-list

Bad marshal data

2005-12-13 Thread Michael McGarry
Hi, I am using the marshal module in python to save a data structure to a file. It does not appear to be portable. The data is saved on a Linux machine. Loading that same data on a Mac gives me the bad marshal data message. Is this data really not portable or I am doing something wrong here. I th

Re: PyQt on Mac OS X

2005-12-13 Thread Michael McGarry
Thanks, that worked. -- http://mail.python.org/mailman/listinfo/python-list

PyQt not working well on Mac OS X

2005-12-13 Thread Michael McGarry
Hi, I am running a Python/Qt app I developed that runs flawlessly in Linux on my Mac. It is unfortunate not running properly on the Mac OS X. The window will not come into focus and is grayed out. Does anyone have any ideas? Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-li

Re: Bad marshal data

2005-12-14 Thread Michael McGarry
Pickle is working well for me. I do not need speed or small file size. Flexibility is more important for me. If speed was important I would write the app in C. -- http://mail.python.org/mailman/listinfo/python-list

RegExp question

2006-04-11 Thread Michael McGarry
Hi, I would like to form a regular expression to find a few different tokens (and, or, xor) followed by some variable number of whitespace (i.e., tabs and spaces) followed by a hash mark (i.e., #). What would be the regular expression for this? Thanks for any help, Michael -- http://mail.pytho

Re: RegExp question

2006-04-11 Thread Michael McGarry
Tim, for some reason that does not seem to do the trick. I am testing it with grep. (i.e., grep -e '(and|or|xor)\s*#' myfile) Michael -- http://mail.python.org/mailman/listinfo/python-list