Re: tkinter questions: behavior of StringVar, etc

2009-03-28 Thread Mike Driscoll
    why does a StringVar not behave more like a string? > > Thanks for any insights, > Alan Isaac Try Google and the Python website. There is tons of info on the Python wiki: http://wiki.python.org/moin/TkInter There are also some books that walk you through Tkinter application creation, for example,Lutz's "Programming Python". - Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I learn about Python & XML?

2009-03-28 Thread Mike Driscoll
latter of which has a digital booklet by the author. There are also lots of tutorials online for the stdlib way of doing things, which is typically using minidom. Here are a couple of links to the 3rd party packages: http://pyparsing.wikispaces.com/ http://codespeak.net/lxml/ HTH - Mike -- http:/

Re: Do deep inheritance trees degrade efficiency?

2009-03-28 Thread Mike Howard
On Mar 19, 7:24 am, Anthra Norell wrote: > Bruno Desthuilliers wrote: > > Chris Rebert a écrit : > >> On Wed, Mar 18, 2009 at 6:09 AM, Anthra Norell > >> wrote: > >>> Would anyone who knows the inner workings volunteer to clarify > >>> whether or > >>> not every additional derivation of a class h

Re: Tkinter book on current versions

2009-03-22 Thread Mike Driscoll
cialized widgets that I couldn't find in Tkinter at the time. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe linux equivalent

2009-03-20 Thread Mike Driscoll
Let me know how it goes though, if you get the chance. Here's a link: http://pyinstaller.python-hosting.com/ You might also look at cx_freeze or bbfreeze. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to load file .py

2009-03-20 Thread Mike Driscoll
l Python as an administrator. It sounds like Python didn't register itself in Windows correctly. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Run on Startup

2009-03-18 Thread Mike Driscoll
On Mar 18, 2:14 pm, Tim Wintle wrote: > On Wed, 2009-03-18 at 11:13 -0700, Mike Driscoll wrote: > > On Mar 18, 1:09 am, "Gabriel Genellina" > > > Any decent installer is able to register a program so it runs on startup   > > > (InnoSetup, by example).

Re: python equivalent of java technologies

2009-03-18 Thread Mike Driscoll
t; Marko Alternatively, you could also use Jython, which can just use the Java implementations... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Openings for Python Programmer at CA

2009-03-18 Thread Mike Driscoll
On Mar 18, 1:09 pm, Paul Rudin wrote: > Aniket M writes: > > Note: Communication MUST be perfect!, Plus submit with 3 professional > > references > > Irony :) I have yet to meet anyone with perfect communication. I think this is an "unfillable" position. Mike --

Re: Run on Startup

2009-03-18 Thread Mike Driscoll
I will grant you that. Of course, putting the shortcut there makes it easier for non-techie people to remove it. Otherwise you'll have to hack the registry to stop the startup or run msconfig and stop auto-start there. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: switch to interactive mode

2009-03-16 Thread Mike Driscoll
as this feature where you can run the program up a breakpoint and then use their debugger to interact with the variables and objects and such. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: cross platform accessing paths (windows, linux ...)

2009-03-12 Thread Mike Mazurek
You might want to look at the path module: http://pypi.python.org/pypi/path.py/2.2 It will probably make your code more readable. On Thu, Mar 12, 2009 at 8:10 AM, Vlastimil Brom wrote: > Hi all, > I'd like to ask for some advice on how to acomplish file access in a > cross platform way. > My ap

Re: strange problem with Py2exe

2009-03-11 Thread Mike Driscoll
een posts on this multiple times within a few weeks of 2.6's release. Here's a link to py2exe's list and archives: https://lists.sourceforge.net/lists/listinfo/py2exe-users Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython fast and slow

2009-03-08 Thread Mike Driscoll
On Mar 8, 3:52 am, iu2 wrote: > On Mar 6, 6:52 pm, Mike Driscoll wrote: > > > ... > > Can you post a sample application so we can try to figure out what's > > wrong? You might also cross-post this to thewxPythonmailing list. > > They might know. > > >

Re: Packaging modules with Bundlebuilder

2009-03-06 Thread Mike Driscoll
//code.google.com/p/gui2exe/ Note that I do not have a Mac and thus, have not used py2app...see their docs for complete info. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython fast and slow

2009-03-06 Thread Mike Driscoll
ve very slowly. > > Do you have any idea of what is going wrong? > Thank you very much > > iu2 Can you post a sample application so we can try to figure out what's wrong? You might also cross-post this to the wxPython mailing list. They might know. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Dr Dobbs' Python Weekly URL Archive?

2009-03-05 Thread Mike Driscoll
archive" ... but thanks anyway! > > regards >  Steve > -- > Steve Holden           +1 571 484 6266   +1 800 494 3119 > Holden Web LLC                http://www.holdenweb.com/ > Want to know? Come to PyCon - soon!http://us.pycon.org/ Perhaps you're looking f

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Mike Driscoll
focused environment > > Thanks & Regards, > Aniket > Techclique Inc. > Jersey City, NJ > Email: ani...@techclique.com > Yahoo IM : aniket_mitta...@yahoo.com > Contact No : 732-357-3844 Is your email program broken or what? Why are you sending the same exact message 5 times!? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: qt, gtk, wx for py3 ?

2009-03-03 Thread Mike Driscoll
inter, I didn't find the docs to be any better than what I found in wxPython. Each toolkit has it's own ups and downs. I would recommend trying them until you find something you like. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
On Mar 3, 11:44 am, Chris Rebert wrote: > On Tue, Mar 3, 2009 at 9:03 AM, Mike Driscoll wrote: > > - Show quoted text - > > On Mar 3, 10:57 am, Oltmans wrote: > >> I'm reading from a file that contains text like > > >> > >> 5 > >>

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
; enlighten me. I will really appreciate > any help. > > Thanks, > Oltmans I think when you're reading from a file, it will just read each line as a string. So you'd probably need to either try casting the line into something else and catch it in an exception handler or use ev

Re: siple for in expression

2009-03-03 Thread Mike Driscoll
a list by iterating over some kind of collection. See the following sites for more info: http://docs.python.org/tutorial/datastructures.html#list-comprehensions http://www.secnetix.de/~olli/Python/list_comprehensions.hawk http://www.network-theory.co.uk/docs/pytut/ListComprehensions.html Mike -- ht

Re: easy_install with MySQL-python

2009-03-03 Thread Mike Driscoll
that folder via the command line and running something like this: python setup.py install If your python isn't on the path, you'll have to do something like this instead: c:\python26\python.exe setup.py install Hopefully that will get you going. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-03-02 Thread Mike Driscoll
's not open source, so I don't see how I can "take a look" at it. The developers for Digsby announced it on the wxPython list for some reason, so I was a little disappointed when the source was unavailable. Mike > > On Mon, Mar 2, 2009 at 8:34 PM, Mike Driscoll wrote:

Re: Email Program

2009-03-02 Thread Mike Driscoll
ing Python 3rd ed." by Lutz has a command-line and a Tkinter-based GUI email program in it. I don't recall if it stored emails or not, but that should be fairly trivial to add. I've written a simple GUI program for sending emails via POP3, but haven't dug into downloading or

Re: Guidance on writing a top-like console

2009-02-27 Thread Mike Driscoll
how I might go about > implementing this? > Any suggestions are appreciated. Perhaps you're looking for the curses module? http://www.amk.ca/python/howto/curses/ Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending Python Questions .....

2009-02-24 Thread Mike Driscoll
; So do you want to embed python into your code? > > I'm still not clear what you are trying to achieve with python, though > I have a better idea what SLAG is now! > > -- > Nick Craig-Wood --http://www.craig-wood.com/nick Maybe he wants SendKeys? Here's the link just in case: http://pypi.python.org/pypi/SendKeys/0.3 Mike -- http://mail.python.org/mailman/listinfo/python-list

March 2, 2009 Pyowa Meeting

2009-02-24 Thread Mike Driscoll
w if you can make it! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: SuPy 1.6

2009-02-23 Thread Mike C. Fletcher
if there's anything else you feel should be said about the program, let me know. http://www.vrplumber.com/py3d.py#supy Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: Which GROUP to join ?

2009-02-23 Thread Mike Driscoll
er projects (such as Sqlalchemy, wxPython, django) have their own specific lists. Join them as needed. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP libs for Python?

2009-02-20 Thread Mike Kent
I use Fabric (http://www.nongnu.org/fab/) as my Python-based deployment tool, but it uses ssh/scp, not sftp. -- http://mail.python.org/mailman/listinfo/python-list

Re: iterating through files

2009-02-19 Thread Mike Driscoll
On Feb 19, 4:22 pm, Mike Driscoll wrote: > On Feb 19, 3:56 pm, oamram wrote: > > > Hi Pythonist, > > new to python. i have a directory with about 50 text file and i need to > > iterate through them and get > > line 7 to 11 from each file and write those lines into

Re: iterating through files

2009-02-19 Thread Mike Driscoll
loop that loops over the list of files. Anyway, that's one approach. I'm sure there are many others. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Newby Question for reading a file

2009-02-19 Thread Mike Driscoll
pen("someFile.txt") for line in f: # do something with the line print line f.close() Of course, you can read just portions of the file too, using something like this: f.read(64) Which will read 64 bytes. For more info, check the following out: http://www.diveintopython.org/file_h

Re: Which Version of wxPython for Win XP

2009-02-19 Thread Mike Driscoll
pyc files. This is normal and is a speed improvement. In fact, a lot of the scripts you write will create a pyc file when first run. In other words, wxPython does not affect your Python install in any way other than making itself available as a 3rd party package (i.e. adding itself to the path), just like any other good 3rd party package. I'm not sure why you're even talking about IDLE...wxPython is a GUI toolkit, not an IDE. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL in TK

2009-02-17 Thread Mike C. Fletcher
headache of maintenance has vastly outweighed my interest. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython and Croatian characters

2009-02-17 Thread Mike Driscoll
. > > Any examples? > > Regards, > John You'll need to look at the python database connector's docs and/or MySQL's docs to know how to do that. It would help to know what you are using to connect to the database: pyodbc, adodb, sqlalchemy? Most of those

Re: Is there something easier than ORM?

2009-02-17 Thread Mike Driscoll
ore. If you don't want any unexpected database operations, don't call flush () or commit() or just call rollback() BEFORE you do any real operations. There is a good sqlalchemy mailing list where even the developers hang out and answer questions. I'm sure they could point you in the r

Re: Upgrading standard library module

2009-02-13 Thread Mike Driscoll
in a virtualenv and then try the new version of Python 2.6 in another virtualenv. See http://pypi.python.org/pypi/virtualenv for more info. As long as your 3rd party packages are pure python, you should be ok. If they depend on c/c++ headers, then you may have issues. Mike -- http://mail.python.org/mailman/listinfo/python-list

problems opening files

2009-02-13 Thread mike
nt_sources_swat.py", line 155, in print pathincbp+' not found' KeyboardInterrupt IDLE commands--- >>> cbpin=open(pathincbp,'r') >>> cbpin I am running in windows xp professional 2002 service pack 3 on a Xeon dell Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Mike Driscoll
quot; N, 121° 2' 32" W, 2700 feet > >                      Web Page: I like IDLE too. However, I've experienced seemingly random crashes when programming wxPython programs in it. As already stated, the mainloops clash from time to time. So now I use Wingware or just edit the files in IDLE and run the program by double-click or via command line. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Who's on First, IDLE or pythonWin? Dialog Problem?

2009-02-11 Thread Mike Driscoll
lt: boom > c. run pyWin and execute program > d. do same as b for pyWin > resulst: all OK > e. repeat a and b. > Result: boom > > Repeat the above and you get the same results. > > I had running IDLE successfully w/o using Pywin, and IDLE goofed, as above. > I switched to it to see if it work there. It did. I double clicked on the py > file, and it worked fine. Can you explain this? > > -- >                                 W. eWatson > >               (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) >                Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet > >                      Web Page: What Steve (and I) are saying is that IDLE has it's own mainloop and your program has a mainloop too as it sounds like it is running a Tkinter app. Sometimes when you run a Tk app from another Tk app, the two mainloops clash and have weird issue like this one. If you just double-click it or run it from the command line, you only have one mainloop (i.e. the one that's part of your app). Thus, no conflicts. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the keyboard buffer (wxPython)

2009-02-11 Thread Mike Driscoll
Dunn can put the smack down on his web hosts... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the keyboard buffer (wxPython)

2009-02-11 Thread Mike Driscoll
ist.php I've never done this sort of thing with wxPython, but you may be able to use wx.Yield somehow. There are various tips and tricks in the wiki about working around long running processes that block the GUI's mainloop here: http://wiki.wxpython.org/LongRunningTasks Other than that, I would recommend doing this with pygame or pyglet as they might be easier to use for this use-case. Here are their sites: http://www.pyglet.org/ http://www.pygame.org/news.html HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Who's on First, IDLE or pythonWin? Dialog Problem?

2009-02-11 Thread Mike Driscoll
some kind of GUI and its GUI and IDLE's are clashing somehow. I see this sort of thing with some of my wxPython programs from time to time, although IDLE usually just crashes with no error message. I would recommend using the command line or something that can open it in a completely separate process, such as Wingware's IDE. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycon 2009 Hotel?

2009-02-11 Thread Mike Driscoll
#x27;m wondering if I'm being 'penny-wise and pound-foolish'?  I'd hate > to spend all that money to get there and then not enjoy it because I > was at the 'other' hotel. > > ... > Jay Graves As I understand it, the hotels are connected via a skywalk, so I don't think it will be a big deal either way. It just means a little extra walking. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-10 Thread Mike C. Fletcher
ecide you want to go your own way. You may want to check out PythonCAD as well, which IIRC does 2D-only CAD. Anyway, hope this was some help. Good luck, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython vs Glade?

2009-02-09 Thread Mike Driscoll
ling list regardless of what you pick though as you'll likely pick up a LOT of helpful tips and tricks there. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Object explorer for python ?

2009-02-06 Thread Mike Driscoll
ight like eric. Links are below: http://eric-ide.python-projects.org/index.html http://www.wingware.com/ Other editors: http://wiki.python.org/moin/PythonEditors Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: database wrapper ?

2009-02-05 Thread Mike Orr
On Feb 1, 3:47 pm, Stephen Hansen wrote: > Googling, I found SQLalchemy, > which looks quit good. > SQLAlchemy is very good. I'm very slowly migrating our entire codebase to it. >   > > > But as I only want to choose once, > I googled for  "SQLalchemy alternatives", > but it didn't find many answe

Re: How to find wxPython method documentation??

2009-02-05 Thread Mike Driscoll
ho seems to have a lot of free time: http://xoomer.virgilio.it/infinity77/wxPython/index.html The wiki is also helpful: http://wiki.wxpython.org/ But I concur that the mailing list is definitely THE place to be to learn the most once you've gotten comfortable with the toolkit. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find wxPython method documentation??

2009-02-05 Thread Mike Driscoll
gt; can be worth it. > > good luck, > andrew I don't think the docs are any worse than any other complicated third party package. Reportlab comes to mind...and the wxPython list members are very helpful. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Couple of noobish question

2009-02-04 Thread Mike Driscoll
o far. You just use the keyword "import". Here's a goofy example: 1) foo.py contains a class called Foo 2) bar.py contains a script that imports Foo: import foo # create an instance of the Foo class myFoo = foo.Foo() I hope that was clear. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Locating python

2009-02-03 Thread Mike Driscoll
ools package, change directory into it. Then run something like this: /path/to/python setup.py install I think that will work...of course, your mileage may vary. I haven't used SUSE. Doesn't SUSE have a package manager like Ubuntu's apt-get? You might be able to just use that too.. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading text file with wierd file extension?

2009-02-02 Thread Mike Driscoll
On Feb 2, 8:08 pm, Lionel wrote: > On Feb 2, 5:40 pm, "Rhodri James" wrote: > > > > > [Quoting restored for reduced > > > On Mon, 02 Feb 2009 22:33:50 -, Lionel wrote: > > > On Feb 2, 2:01 pm, Mike Driscoll wrote: > > >> On Feb 2, 3

Re: function scope

2009-02-02 Thread Mike Kent
On Feb 2, 6:40 pm, Baris Demir wrote: > def simpleCut(d=dict()): >        temp=d >        for i in temp.keys(): >            if    (temp[i] == ...) : >               temp[i]=new_value > return temp You have been bitten by the shared default parameter noobie trap: http://www.python.org/doc/fa

handy way to spot-profile a python program (watch+pstat+tac)

2009-02-02 Thread Mike
ve off the tac, though that makes it a bit jumpier. (pstack uses the ptrace interface, which may annoy the parents of this process if they're paying attention (which is not usually the case).) Have fun, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading text file with wierd file extension?

2009-02-02 Thread Mike Driscoll
Error opening " + ResourceFilepath) >             DataFH.close() >             return None > > Console output when invoking as "someObject = C8DataType("C:\ > \C8Example1.slc")" : > > C:\C8Example1.slc > C:\C8Example1.slc.src > [Errno 2] No such file

Re: Reading text file with wierd file extension?

2009-02-02 Thread Mike Driscoll
On Feb 2, 1:20 pm, Lionel wrote: > On Feb 2, 10:41 am, Mike Driscoll wrote: > > > > > On Feb 2, 12:36 pm, Lionel wrote: > > > > Hi Folks, Python newbie here. > > > > I'm trying to open (for reading) a text file with the following > >

Re: Reading text file with wierd file extension?

2009-02-02 Thread Mike Driscoll
xtFile.slc.rsc) and get Python to open it as a text > file? Thanks in advance everyone! The extension shouldn't matter. I tried creating a file with the same extension as yours and Python 2.5.2 opened it and read it no problem. I tried it in IDLE and with Wing on Windows XP. What are you using? What's the complete traceback? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Monitor Internet connections in XP/Vista

2009-02-02 Thread Mike Driscoll
re taken, based on fixed policies. > This can be thought of a mini firewall. > > I am sure there must be some good libraries for this purpose. I need > the names of those libraries. > > Thanks, > > Pranav Prakash You could try urllib2, socket or just call ping with subproces

Re: what's the point of rpython?

2009-01-28 Thread Mike
lanced against the large majority where threading is simply inappropriate anyway. That the latter might help compulsive threaders kick their habit (or at least head for more convoluted horizons) might be considered a virtue. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
over the last 9 years, but only about once a > year for the last 3 years. > > For comparison, according to Google I've managed 2251 posts to clp since 1997 > which I find kind of scary. That's not scary! I've managed over 1100 posts since 2007... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
gt; -- [mdw] I don't know if we should encourage the use of pythons as thongs myself...I didn't even know there was a group on that topic. ;) Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: pyAA for Python2.5

2009-01-27 Thread Mike Driscoll
> > Has anyone tried the same? Can anyone give any suggestions? You probably have to put mingw32 on your path or provide an absolute path to it. By the way, where did you get the source? I couldn't find it... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
hings to do...and his employer probably doesn't want him spending all day answering stuff like that. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
t; Thanks I'm not sure how you arrived at that low number. If you go to the main page on the Google Groups version, you'll count at least 20 on page 1: http://groups.google.com/group/comp.lang.python/topics Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get first/last day of the previous month?

2009-01-20 Thread Mike Driscoll
advance. I recommend the dateutil module: http://labix.org/python-dateutil I think it may also be possible to use the datetime module, but it's easier to just use dateutil. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: LGPL license for Qt 4.5

2009-01-14 Thread Mike Driscoll
ython uses native widgets whenever possible. While this allows Qt to have skinning (a plus!), it also can make them look less than native (a minus!). If they do release a LGPL version, I may take a look at it just to see how different it is, although I'm pretty happy with what I'm using. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple CGI-XMLRPC failure

2009-01-13 Thread Mike MacHenry
e? If you which version? Does anyone know of any environment settings I could look into on Apache or Python? -mike On Mon, Jan 12, 2009 at 9:02 PM, Jeff McNeil wrote: > On Jan 12, 12:40 pm, "Mike MacHenry" wrote: >> I am having a difficult time understanding why my very s

Simple CGI-XMLRPC failure

2009-01-12 Thread Mike MacHenry
ine 1340, in _parse_response return u.close() File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: :method "i" is not supported'> Does anyone know what might be wrong with this? Thanks for the help, -mik

Re: sftp with no password from python

2009-01-08 Thread Mike Hjorleifsson
On Jan 8, 10:39 am, loial wrote: > Is it possible to use sftp without a password from python? Yes you can use keys you preestablish between the server and client so you dont need passwords, i do this on all my servers then lock off the ability to accept passwords at all, this way no one can dicti

Re: How to Delete a Cookie?

2009-01-08 Thread Mike Driscoll
t;]["expires"] = 60*60*24 > c["mycook"]["comment"] = "" > c["mycook"]["path"]    = "/" > c["mycook"]["domain"]  = "" > c["mycook"]["secure"]  = "" > print c > > Thanks > Tryg Well, if you know where the cookie file is stored, you should be able to do this: os.remove(path) Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: python is great

2009-01-06 Thread Mike Driscoll
ybe.  I'm not a big fan of anything so Microsoftian, but I'll admit > that this does mostly fit the bill I described above (or has the > potential to, anyway). > > Thanks, > - Joe I use Andrea Gavana's GUI2Exe to create my binaries. He recently added a py2app wrapper to

Problem building Python 2.5.2 curses module on HP/UX 11.11

2009-01-06 Thread Mike Kent
I'm having a problem building the Python 2.5.2 curses module on HP/UX 11.11 using gcc 3.3.6, and was hoping someone had a solution. Compiling Modules/_cursesmodule.c is giving several warnings, but no errors. The relevant compile/link output is below. The key output line is: *** WARNING: renamin

Re: Py2exe issue

2009-01-02 Thread Mike Driscoll
Traceback (most recent call last): >   File "threading.pyc", line 522, in __bootstrap_inner >   File "script.py", line 35, in run >   File "subprocess.pyc", line 588, in __init__ > [/code] > > So the script.py run perfectly well under the py environment but if i > use py2exe to make an exe then i get the error above. > I read the note in the py2exe Fac regarding Popen, but i don't know if > it's relevant in my case. Try it with bundle_files option 3 instead of 1. Also what version of py2exe are you using? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating an application for Linux

2009-01-01 Thread Mike Driscoll
On Jan 1, 7:47 am, lkcl wrote: > On Dec 31 2008, 9:54 pm, Mike Driscoll wrote: > > > On Dec 31, 3:36 pm,lkcl wrote: > > > > hiya mike: where do i know you from?  i've heard your name somewhere > > > and for the life of me can't remember where!  anyway.

Re: Iowa Python Users Group Meeting (Jan. 5, 2008)

2009-01-01 Thread Mike Driscoll
On Jan 1, 10:36 am, Mike Driscoll wrote: > Hi, > > The next Iowa Python Users Group meeting is Monday, January 5th, 2008, > barring bad weather. We will be meeting from 7-9 p.m. at the following > location: > > Marshall County Sheriff's Office > 2369 Jessup

Iowa Python Users Group Meeting (Jan. 5, 2008)

2009-01-01 Thread Mike Driscoll
experience and new programmers. All experience levels are welcome. We hope to see you there! If you have any questions, just let me know. Mike Driscoll www.pyowa.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating an application for Linux

2008-12-31 Thread Mike Driscoll
On Dec 31, 3:36 pm, lkcl wrote: > hiya mike: where do i know you from?  i've heard your name somewhere > and for the life of me can't remember where!  anyway... onwards. > I don't know...while your username looks vaguely familiar, I don't think I've communicat

Creating an application for Linux

2008-12-31 Thread Mike Driscoll
ion with SqlAlchemy and a few other external packages. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding python in wxpython

2008-12-30 Thread Mike Driscoll
RedirectText(log) sys.stdout=redir def onButton(self, event): print "You pressed the button!" # Run the program if __name__ == "__main__": app = wx.PySimpleApp() frame = MyForm().Show() app.MainLoop() - Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: win32gui

2008-12-30 Thread Mike Driscoll
at you're looking for, although it's kind of hard to tell from what little info you gave. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding python in wxpython

2008-12-30 Thread Mike Driscoll
es/directions. > > Thank you > Michael You should ask the guys on the wxPython list for pointers: http://wxpython.org/maillist.php I'm pretty sure I've seen it discussed there before. They already have PyShell and PyCrumb that you could probably use within your program. The wxPython includes demos of them and lots of other widgets. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Excel spreadsheets

2008-12-30 Thread Mike Driscoll
on.net/sjmachin/xlrd.htm, > but I'd rather get some more input before going with something I don't > know. > > Thanks, > Andy. If you need complete control of Excel, then you'll probably have to use COM (see Mark Hammond's PyWin32 package). Otherwise, the suggestion

Re: folder extraction

2008-12-30 Thread Mike Driscoll
, see the zip module or use the subprocess module to control an external archiving application. If the latter, see os.walk and the glob module. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython.button.disabled still catching clicks

2008-12-30 Thread Mike Driscoll
On Dec 30, 3:04 am, mynthon wrote: > On Dec 23, 6:12 pm, Mike Driscoll wrote: > > > > > On Dec 23, 7:27 am,mynthon wrote: > > > > On Dec 23, 11:58 am, Aaron Brady wrote: > > > > > On Dec 23, 4:50 am,mynthon wrote: > > > > > >

Re: PythonCard timer/thread tutorial

2008-12-25 Thread Mike Driscoll
On Dec 25, 7:24 am, Steven D'Aprano wrote: > On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote: > >> Among my questions are: > >> """ A little thread we've added""" seems to be an isolated string. It > >> does not seem t

Re: PythonCard timer/thread tutorial

2008-12-24 Thread Mike Driscoll
methods of messing with threads in wxPython here: http://wiki.wxpython.org/LongRunningTasks And here are the queue docs (for 2.6...): http://docs.python.org/library/queue.html I recommend learning how to use Google effectively. I found about half the links above using it. You might also find joining the wxPython mailing list beneficial. I learn a lot there just by reading and posting to it: http://wxpython.org/maillist.php - Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy-to-use Python GUI

2008-12-24 Thread Mike Driscoll
e this for Python? > > Thanks, > ---Joel Some people like Boa Constructor, XRC or wxGlade: http://boa-constructor.sourceforge.net/ http://wxglade.sourceforge.net/ http://wiki.wxpython.org/XRCTutorial Technically, you can switch to IronPython and then use Visual Studio to design your GUIs and IronPython to control it. I think there's something similar to Jython and Cocoa as well. Probably not what you wanted though. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython.button.disabled still catching clicks

2008-12-23 Thread Mike Driscoll
        if stream.CanRead(): >             text = stream.read() >             print text > >         # dont know it is necessary >         self.process.CloseOutput() > >         # remove (clear) process object >         self.process.Destroy() >         self.process = None > &

Re: Python to open command script file

2008-12-11 Thread Mike Driscoll
w to trigger them from an > independent script file. > > Thanks! > -Dave I usually use python's included shutil module for copying files and directories. I think that would be a little more cross-platform friendly. However, if you want to execute those commands above, try using the subprocess module or os.system. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing __slots__ from C

2008-12-09 Thread Mike Kolbet
-- http://mail.python.org/mailman/listinfo/python-list

Re: Calling C# COM (.NET) from python

2008-12-08 Thread Mike Driscoll
On Dec 8, 3:33 pm, Andrew Falanga <[EMAIL PROTECTED]> wrote: > On Dec 8, 11:52 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Dec 8, 11:14 am, Ben Kaplan <[EMAIL PROTECTED]> wrote: > > > > On Dec 8, 2008, at 11:53 AM, Andrew

Re: Calling C# COM (.NET) from python

2008-12-08 Thread Mike Driscoll
pport most 3rd party packages that are not pure python. As I recall, it doesn't have the complete builtin library either, but it's close. Reads the docs and check it out at least. If you already know .NET languages, then you'll probably find IronPython helpful. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling C# COM (.NET) from python

2008-12-08 Thread Mike Driscoll
I'm not fluent enough in .NET to be able to use a lot of its capabilities. Regardless, you should read up on it as it offers lots of interesting capabilities: http://www.codeplex.com/IronPython Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: To Troll or Not To Troll (aka: "as" keyword woes)

2008-12-05 Thread Mike Driscoll
ling out some of the spam. > > *No names were mentioned in the making of this post. I really like Python, but I seem to get blasted enough on this list that I don't post much on here any more without being extremely careful in how I word my answers. Bleh! Oh well. You win some, you lose some. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: slow Python 3.0 write performance?

2008-12-05 Thread Mike Driscoll
137329 20 0.29631335 30 0.64104904 40 0.64104904 50 0.7826485 60 0.952999830246 70 1.1386649 80 1.25 90 1.4213134 Slowness in this exercise is confirmed on Windows XP. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Good introductory book?

2008-12-04 Thread Mike Driscoll
think was pretty good. Note that there's not much out for the 3.0 version yet other than the official docs. You'll probably have to wait until next year before much is really written/published about that. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't doc has predifined name and location ?

2008-12-01 Thread Mike Driscoll
it puts it in another directory by default... > > Cheers, > Chris > -- Mike -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >