Re: Is this valid ?

2008-03-19 Thread Mike Driscoll
On Mar 19, 4:18 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > by accident I typed a double value test, > and to my surprise it seems to work. > Is this valid ? > > a = 2 > b = 2 > > a == b == 2 > > thanks, > Stef Mientki It sure looks that way... See http://www.python.org/doc/2.3.5/ref

Re: Is this doable

2008-03-21 Thread Mike Driscoll
On Mar 21, 6:48 am, fkallgren <[EMAIL PROTECTED]> wrote: > Hi. > > I have a little problem. I have a script that is in the scheduler > (win32). But every now and then I update this script and I dont want > to go to every computer and update it. So now I want the program to 1) > check for new versio

Re: Is IronPython real Python?

2008-03-24 Thread Mike Driscoll
On Mar 24, 12:00 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > I know that IronPython and CPython are different in that one does not > use the .net framework, but are they both really the same Python > language. From my basic understanding, it will depend on what the > programmer's goal is as to whic

Re: New to group

2008-03-24 Thread Mike Driscoll
On Mar 24, 1:53 pm, pythonnubie <[EMAIL PROTECTED]> wrote: > Hi Everyone > > I am new to programming in general although I have read alot and > done alot of experimentation as well as researched afew languages > namely java python and visual basic . My conclusion is that python > is one of

Re: PyCon video editing

2008-03-24 Thread Mike Driscoll
On Mar 18, 10:09 am, amk <[EMAIL PROTECTED]> wrote: > On Mar 17, 10:00 pm, dundeemt <[EMAIL PROTECTED]> wrote: > > > Anyone know who is in charge of this? I'd like to help out if I > > could. > > I am, but haven't set anything up yet, such as a mailing list or a > host for the video. > I'll update

Re: A question on decorators

2008-03-26 Thread Mike Driscoll
On Mar 26, 2:10 pm, Tim Henderson <[EMAIL PROTECTED]> wrote: > Hello > > I am writing an application that has a mysql back end and I have this > idea to simplify my life when accessing the database. The idea is to > wrap the all the functions dealing with a particular row in a > particular in a par

Re: LGPL license for Qt 4.5

2009-01-14 Thread Mike Driscoll
On Jan 14, 8:20 am, sturlamolden wrote: > On Jan 14, 3:11 pm, "drobi...@gmail.com" wrote: > > > On Jan 14, 7:57 am, sturlamolden wrote: > > > > According to a Norwegian publication, Nokia will release Qt under LGPL > > > as of version 4.5. > > > > If I had stocks in Riverbank Computing ltd., I w

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

2009-01-20 Thread Mike Driscoll
On Jan 20, 8:19 am, Hussein B wrote: > Hey, > I'm creating a report that is supposed to harvest the data for the > previous month. > So I need a way to get the first day and the last day of the previous > month. > Would you please tell me how to do this? > Thanks in advance. I recommend the dateu

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
On Jan 27, 9:07 am, rantingrick wrote: > I curious of how many are "really" out there. I have been watching the > list for some time but basically see the same 10 or so people > answering questions. > > Reply to this message so we can see how many exists here > > Thanks I'm not sure how you arriv

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
On Jan 27, 9:17 am, rantingrick wrote: > I also looked at Guido's profile and he has not posted a message here > since 2000. WOW! I know he way ahead of "us" here but why has he not > drooped in for a chat with the python community? Matz(the creator of > Ruby), is a regular at comp.lang.ruby. > >

Re: pyAA for Python2.5

2009-01-27 Thread Mike Driscoll
On Jan 27, 12:12 pm, Kottiyath wrote: > Hi, >    I would like to obtain pyAA for Python 2.5. I went through their > web site, but they provide the windows exe only for Python2.4. I tried > compiling from source, but that also was to no avail - it errs out as > follows: > > C:\Documents and Setting

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
> > Of the newsgroups I read, c.l.python is probably the most friendly and > > has one of the highest S/N ratios.  People who would have been roasted > > alive in other newsgroups for their laziness or presumptuousness get > > surprisingly gentle treatment in c.l.python.  I do know of a few > > lo

Re: How many followers of comp.lang.python

2009-01-27 Thread Mike Driscoll
On Jan 27, 2:52 pm, Duncan Booth wrote: > Thorsten Kampe wrote: > > * rantingrick (Tue, 27 Jan 2009 10:03:16 -0800 (PST)) > >> On Jan 27, 12:00 pm, Paul Rubin wrote: > >> > Guido does post here once in a while, under his own name.  I can't > >> > think of any very r

Re: Monitor Internet connections in XP/Vista

2009-02-02 Thread Mike Driscoll
On Feb 2, 3:05 am, pranav wrote: > Hi Folks, > > I am designing a project for Windows XP/Vista, one part of which is a > background process that monitors internet connections. If the user > tries to connect to any particular site, say myDummySite.com in then > some actions are taken, based on fixe

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
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, 12:36 pm, Lionel wrote: > Hi Folks, Python newbie here. > > I'm trying to open (for reading) a text file with the following > filenaming convension: > > "MyTextFile.slc.rsc" > > My code is as follows: > > Filepath = "C:\\MyTextFile.slc.rsc" > FileH = open(Filepath) > > The above throws a

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: Locating python

2009-02-03 Thread Mike Driscoll
On Feb 3, 3:24 pm, David Sevilla wrote: > Hi, > > Apologies if this was answered somewhere else, I have not found > anything similar anywhere. > > I have SUSE 11.0 and I am trying to install a program called > mnemosyne. I need easy_install for this, for which I installed > setuptools through yast

Re: Couple of noobish question

2009-02-04 Thread Mike Driscoll
On Feb 4, 10:47 am, Catherine Heathcote wrote: > Firstly hi, I don't know any of you yet but am picking up Python and > will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 > years of a comp tech degree, long story) and am learning Python, 'cos I > saw some code and it just looks

Re: How to find wxPython method documentation??

2009-02-05 Thread Mike Driscoll
On Feb 4, 5:49 pm, andrew cooke wrote: > On Feb 4, 8:06 pm, len wrote: > > > How does one find the methods that are available in the classes. > > heh.  welcome to the wonderful world of wxpython :o( > > if you use eclipse to edit your code, then (providing the wind is in > the right direction and

Re: How to find wxPython method documentation??

2009-02-05 Thread Mike Driscoll
On Feb 4, 5:06 pm, len wrote: > Hi > > I am going through the "wxPython in Action" book by Noel Rappin and > Robin Dunn. > > I have been typing in the example programs as I go and play with > modifing the code. > Thought I should start trying to find my way around the documentation > found on the

Re: Object explorer for python ?

2009-02-06 Thread Mike Driscoll
On Feb 6, 9:49 am, Linuxguy123 wrote: > Is there a (stand alone ?) object explorer for python objects such as > the PyQt4 collection ? > > How else could I find out what is in PyQt4.QtCore, .QtGui > and .QtWebKit ? > > Thanks I like WingWare for this sort of thing, but you might like eric. Links

Re: wxPython vs Glade?

2009-02-09 Thread Mike Driscoll
On Feb 9, 7:23 am, Michael Pobega wrote: > I'm looking for opinions on the best toolkit for a beginner to use with > wxPython. It doesn't necessarily need to be the most efficient toolkit, > but something I can use for basic programs (a Twitter client, Wordpress > blogging client, etc) just to lea

Re: Pycon 2009 Hotel?

2009-02-11 Thread Mike Driscoll
On Feb 11, 9:17 am, jay graves wrote: > On Feb 11, 9:13 am, jay graves wrote: > > > I'm attending Pycon this year and for the first time I have to pay for > > myself.  (All training/conference budgets have been zeroed out at my > > company.) > > > I would like to take the cheaper option by stayin

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

2009-02-11 Thread Mike Driscoll
On Feb 11, 10:28 am, "W. eWatson" wrote: > My program in IDLE bombed with: > == > Exception in Tkinter callback > Traceback (most recent call last): >    File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__ >      return self.func(*args) >    File > "C:\Sandia_Meteors\New_S

Re: Clearing the keyboard buffer (wxPython)

2009-02-11 Thread Mike Driscoll
On Feb 11, 2:28 pm, "MarcusD" wrote: > Platform: MSW (XP) Python 2.5 wxPython 2.8 > Topic: Clear Keyboard buffer > > Hi, > I hope I am not off topic asking a wxpython question. > I'm writing a Score counter for Dart games. The software > shows graphical output on a Canvas and accepts keyboard > in

Re: Clearing the keyboard buffer (wxPython)

2009-02-11 Thread Mike Driscoll
On Feb 11, 2:54 pm, "MarcusD" wrote: > Whow. Thanks for the fast and comprehensive answer. To be honest I would > have posted to wxpython.org but the server seems to be down for the last > couple of days. > > I'll check this wx.Yield thing that I never heard of. And let's see what > else we get he

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

2009-02-11 Thread Mike Driscoll
On Feb 11, 3:27 pm, "W. eWatson" wrote: > Steve Holden wrote: > > W. eWatson wrote: > >> Steve Holden wrote: > >>> W. eWatson wrote: > My program in IDLE bombed with: > == > Exception in Tkinter callback > Traceback (most recent call last): >   File "C:\Python2

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Mike Driscoll
On Feb 12, 8:57 am, "W. eWatson" wrote: > Diez B. Roggisch wrote: > > W. eWatson wrote: > > >> It appears if one moves between IDLE and pythonWin (pyWin) that two > >> separate loops (threads?) can occur, and that IDLE can produce incorrect > >> results. Since I have preferred IDLE over pyWin, tha

Re: Upgrading standard library module

2009-02-13 Thread Mike Driscoll
On Feb 13, 2:42 pm, Bryan wrote: > I have a Python v2.5.2 server running and I found some undesirable > behavior in the xmlrpclib module that is included with that version of > Python.  The xmlrpclib version that is included with Python 2.6 > changes the behavior for the better.  I nervous about u

Re: Is there something easier than ORM?

2009-02-17 Thread Mike Driscoll
On Feb 17, 8:15 am, 一首诗 wrote: > Thanks for your reply. > > With sqlalchemy, an mapped must living in a session, you have no way > to disconnect it with its session. > > For example : > > #- > user = session.query(User).first() > session.expunge(user) > print us

Re: wxPython and Croatian characters

2009-02-17 Thread Mike Driscoll
On Feb 17, 11:02 am, vedrandeko...@gmail.com wrote: > On 17 velj, 00:09, "alejandro" wrote: > > > Provjeri da si nisi stavio ansii kada si instalirao wx.python. > > Mozes probat ubacit iznad svega u fajlu komentar u kojem pise da je fajl u > > UTF-8 i onda bi ti trebalo sljakat. Nadem sutra pa ti

Re: Which Version of wxPython for Win XP

2009-02-19 Thread Mike Driscoll
On Feb 19, 11:29 am, "W. eWatson" wrote: > W. eWatson wrote: > > eric_dex...@msn.com wrote: > >> On Feb 19, 8:22 am, "W. eWatson" wrote: > >>> I'm going to try out wxPython 2.8.92 for py25. It seems like the ansi > >>> version is the choice for me. The other choice has unicode. Do I care? > >>> -

Re: Newby Question for reading a file

2009-02-19 Thread Mike Driscoll
On Feb 19, 12:32 pm, "steven.oldner" wrote: > Simple question but I haven't found an answer.  I program in ABAP, and > in ABAP you define the data structure of the file and move the file > line into the structure, and then do something to the fields.  That's > my mental reference. > > How do I sep

Re: iterating through files

2009-02-19 Thread Mike Driscoll
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 another file(one file > that will contain all lines). > > Cheers, Omer. > -- > View th

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: best IDE

2008-11-26 Thread Mike Driscoll
On Nov 26, 11:59 am, asit <[EMAIL PROTECTED]> wrote: > Which one is the best IDE for python You'll probably also want to take a look at the Python wiki: http://wiki.python.org/moin/PythonEditors Mike -- http://mail.python.org/mailman/listinfo/python-list

Iowa Python Users Group Meeting (Dec. 1, 2008)

2008-11-26 Thread Mike Driscoll
arshalltown, IA 50158 This group is open to new and experienced programmers. Come and network with local IT personnel. If you know you can make it, could you please let me know? It's nice to have a general idea of how many will be there (there is plenty of room though). We hope to see you t

Re: Embedded Program Icon (wxPython)

2008-11-29 Thread Mike Driscoll
On Nov 29, 2:30 pm, Bart <[EMAIL PROTECTED]> wrote: > Dear members, > It's not (yet) easy to find my way through the bunch of info scattered > over the internet to find out how to embed an icon. It could be that > I’m looking at the wrong places, I'm new to Python and wxPython. > Nevertheless, I wo

Re: How to distribute a Python app together with its dependencies?

2008-12-01 Thread Mike Driscoll
On Nov 30, 6:22 am, Alessio Pace <[EMAIL PROTECTED]> wrote: > Hi, > > I have to distribute a Python application which relies on an external > library, and I'm not very fluent in this kind of stuff with Python (I > come from the Java world where I would have used the Maven build tool > to create an

Dec 1st Python Meeting Cancellation

2008-12-01 Thread Mike Driscoll
Hi all! Sorry for the very short notice, but the Python Programming group is canceling tonight's meeting due to inclement weather, lack of interest and sickness. We hope to see you at our next meeting, which will be Monday, January 5th, 2009. Happy holidays! Mike Driscoll http://www.pyow

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

2008-12-01 Thread Mike Driscoll
> Sidenote: what Python projects publish their docs in CHM besides > possibly Win32 GUI programs? Doing a quick search in my Python25 directory and all it's sub- folders, all I found was Python25.chm and PyWin32.chm. However, I know wxPython also has a help file in chm format, but it puts it in

Re: Good introductory book?

2008-12-04 Thread Mike Driscoll
On Dec 3, 8:44 am, "Ken D'Ambrosio" <[EMAIL PROTECTED]> wrote: > Hi, all.  I'm getting ready to do some projects in Python, and I've cut my > teeth a little bit, but I've found the "Learning|Programming Python" books > from O'Reilly to be more-or-less useless (to my surprise -- I'm usually an > O'R

Re: slow Python 3.0 write performance?

2008-12-05 Thread Mike Driscoll
On Dec 5, 12:54 pm, Istvan Albert <[EMAIL PROTECTED]> wrote: > Could someone run the code below on both Python 2.5 and 3.0 > > For me (on Windows) it runs over 7 times slower with Python 3.0 > > import time > > lo, hi, step = 10**5, 10**6, 10**5 > > # writes increasingly more lines to a file > for

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

2008-12-05 Thread Mike Driscoll
On Dec 5, 4:00 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Andreas Waldenburger wrote: > > Is it me, or has c.l.p. developed a slightly harsher tone recently? > > (Haven't been following for a while.) > > Yep. I can only post here for about a week or two until someone blows a > cylinder and gets

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

2008-12-08 Thread Mike Driscoll
On Dec 8, 10:53 am, Andrew Falanga <[EMAIL PROTECTED]> wrote: > Hi, > > I've never programmed in python and only have a small understanding of > what is wrapped up in the terms COM and .NET.  Is there a way of using > python to get a hold of objects written in C# as COM objects using > python?  I'm

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

2008-12-08 Thread Mike Driscoll
On Dec 8, 11:14 am, Ben Kaplan <[EMAIL PROTECTED]> wrote: > On Dec 8, 2008, at 11:53 AM, Andrew Falanga <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I've never programmed in python and only have a small understanding of > > what is wrapped up in the terms COM and .NET.  Is there a way of using >

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: Python to open command script file

2008-12-11 Thread Mike Driscoll
On Dec 11, 12:04 pm, dave rose wrote: > Hello all >  I would like to know how to do the following.  I'd like to have a generic > python program that the user will open a command-script file to do actions. > > So, my python program will get a list of servers, enumerate them within a > checklistbox

Re: wxPython.button.disabled still catching clicks

2008-12-23 Thread Mike Driscoll
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: > > > > Hello! (sorry for my english) > > > > I have a problem with buttons in wxPython. When button is disabled > > > (by .Disable() or .Enable(False)) it is grayed out but

Re: Easy-to-use Python GUI

2008-12-24 Thread Mike Driscoll
On Dec 24, 5:47 pm, "Joel Koltner" wrote: > Is there an easy-to-use, "function"-based cross-platform GUI toolkit for > Python out there that's a little more sophisticated than EasyGui?  EasyGui > looks good, but it's a little more restrictive than what I'd like to have, yet > I'm (stubbornly :-) )

Re: PythonCard timer/thread tutorial

2008-12-24 Thread Mike Driscoll
On Dec 24, 4:56 pm, Sponge Nebson wrote: > Hello all, > > This is my first post. Nice to meet you all! Could one of you walk me > through this code? > >    def myThread(*argtuple): >         """ >         A little thread we've added >         """ >         print "myThread: entered" >         q = a

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: 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: folder extraction

2008-12-30 Thread Mike Driscoll
On Dec 30, 9:30 am, ibpe...@gmail.com wrote: > how do i get along with this task of extracting multiples folder and > generating their names individually in a their respective files as > they were generated. Are you talking about unzipping an archive or walking a directory? If the former, see the

Re: Parsing Excel spreadsheets

2008-12-30 Thread Mike Driscoll
On Dec 30, 10:07 am, "andyh...@gmail.com" wrote: > Hi, > > Can anybody recommend an approach for loading and parsing Excel > spreadsheets in Python. Any well known/recommended libraries for this? > > The only thing I found in a brief search > washttp://www.lexicon.net/sjmachin/xlrd.htm, > but I'd

Re: embedding python in wxpython

2008-12-30 Thread Mike Driscoll
On Dec 30, 1:52 pm, 5lvqbw...@sneakemail.com wrote: > Hi, I've looked around for a way to allow a python console from within > a wxPython application, but have only found stuff on embedded/ > extending python with C/C++ or wxWidgets in C++, but not wxPython. > > Is this easy to do?  Can someone poi

Re: win32gui

2008-12-30 Thread Mike Driscoll
On Dec 30, 3:22 pm, Gandalf wrote: > I'm searching the win32gui hooks for a function to get the windowClass > position any idea? > > thanks! Try looking in the docs: http://docs.activestate.com/activepython/2.4/pywin32/win32gui.html I think the GetWindowPlacement() might be what you're looking

Re: embedding python in wxpython

2008-12-30 Thread Mike Driscoll
On Dec 30, 3:41 pm, Steve Holden wrote: > 5lvqbw...@sneakemail.com wrote: > > Hi, I've looked around for a way to allow a python console from within > > a wxPython application, but have only found stuff on embedded/ > > extending python with C/C++ or wxWidgets in C++, but not wxPython. > > > Is th

Creating an application for Linux

2008-12-31 Thread Mike Driscoll
Hi, My boss wants me to port one of my applications to Ubuntu. I successfully ported it without too many headaches but now I need a way to distribute it to people that may or may not already have the dependencies my application requires. I'm a newb with Linux so I'm not even sure what they call th

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 communicated with you recently. I spend most of

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: 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

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: Py2exe issue

2009-01-02 Thread Mike Driscoll
On Jan 2, 10:19 am, rcmn wrote: > I'm using 2.6 (the issue was the same with 2.5) > > script.py: > > [code]import re > > from optparse import OptionParser > parser = OptionParser() > parser.add_option("-f", "--file", action="store", type="string", > dest="filename") > parser.add_option("-o", "--ou

Re: python is great

2009-01-06 Thread Mike Driscoll
On Jan 6, 2:24 pm, Joe Strout wrote: > M.-A. Lemburg wrote: > >> On the Mac in particular, if you want > >> your app to run on any PowerPC or Intel machine runing 10.4 or later, > >> and you're using anything not in the standard framework (such as > >> MySQLdb), it's a bit of a nightmare. > > > Y

Re: How to Delete a Cookie?

2009-01-08 Thread Mike Driscoll
On Jan 8, 9:16 am, tryg.ol...@gmail.com wrote: > Hello - > > I managed to get a cookie set.  Now I want to delete it but it is not > working. > > Do I need to do another 'set-cookie' in the HTTP header?  I tried > (code below setting expires to 0) and it didn't work. > c = Cookie.SimpleCookie(os.en

Re: Favorite Python System Administration Examples

2008-10-07 Thread Mike Driscoll
On Oct 6, 2:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > I'm giving a talk at LISA this year, and while the slides are ready I > would like to go armed with as many examples of good system > administration code as possible. > > If you have a favorite administration tool that you wouldn't mind m

Re: how can we send keys to keyboard

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > how can we send keys to keyboard? i want to write a script that will > push keyboard buttons and do what i want. its for a macro prog. there > are some kinds at c++ and at java. for example actools prog. but i > want to this in python... > >

Re: time

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:05 am, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: > Hello everyone! > > I trying to work with time and I a bit confused... If I look at my > clock, it's 16:59 (4:59pm), if I type "date" in a terminal, it says the > same thing. I'm wanting to write a simple NTP-type server/client (it's

Re: how can we send keys to keyboard

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:42 am, mhangman <[EMAIL PROTECTED]> wrote: > On 7 Ekim, 18:34, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > how can we send keys to keyboard? i want to write a scr

Re: time

2008-10-07 Thread Mike Driscoll
On Oct 7, 11:11 am, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > "Gabriel Rossetti" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > . > > > I'm a UTC/GMT +1, I tried obtaining the UTC time, it says it's 2 hours > > earlier than the > > current time (14:59). I tried various other

Re: Accessing the message of Outlook inbox

2008-10-08 Thread Mike Driscoll
On Oct 8, 9:24 am, [EMAIL PROTECTED] wrote: > Hi all, >         How can I access the body of a mail in Outlook Inbox? I tried > various options like message.Body or message.Mesg etc. but didn't > work. I could get the subject of the mail using message.Subject > though. > > Any help is appreciated.

Re: Accessing the message of Outlook inbox

2008-10-08 Thread Mike Driscoll
On Oct 8, 12:50 pm, [EMAIL PROTECTED] wrote: > On Oct 8, 8:53 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Oct 8, 9:24 am, [EMAIL PROTECTED] wrote: > > > > Hi all, > > >         How can I access the body of a mail in Outlook Inbox? I tri

Re: book recommendation for Python newbie?

2008-10-09 Thread Mike Driscoll
On Oct 9, 3:00 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > I'm trying to (gently) convince my business partner that we should be   > adding Python to our core toolset.  He's never used it before, apart   > from poking around in the tutorial a bit at my urging.  But he's got a   > birthday coming up

Re: Wanted: something more Pythonic than _winreg.

2008-10-10 Thread Mike Driscoll
On Oct 10, 9:44 am, Jonathan Fine <[EMAIL PROTECTED]> wrote: > Hello > > I'm using the _winreg module to change Windows registry settings, but > its rather low level, and I'd prefer to be working with something more > Pythonic. > > Does anyone have any recommendations? > > Jonathan I've used YARW

Re: File Upload Size

2008-10-12 Thread Mike Driscoll
On Oct 12, 9:34 am, rodmc <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to get the size of a file on a remote machine before it > is uploaded? I would like to write some form of status counter which > is updated as a fie is uploaded, and also to use this feature to > prevent files which are t

Re: SIGALRM problem

2008-10-13 Thread Mike Driscoll
On Oct 13, 11:45 am, Paul Rubin wrote: > I'm trying to run a command on a remote host, something like: > >    result = os.popen('ssh otherhost mycommand').read() > > It is possible that the other host is down, in which case the ssh > command hangs, so I want my script to

Re: Wx.Grid and popup over cells

2008-10-14 Thread Mike Driscoll
amazing tooltip") Hopefully that will get you going. If not, just ask more questions (here or at the wxPython list). --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:00 am, azrael <[EMAIL PROTECTED]> wrote: > I need to implement a tree which will append a root. Any other node in > the tree will be triggered when a button is pressed. > I created the button, all the needed events, tree and a root. But when > I want to append a node pressing the butto

Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:36 am, azrael <[EMAIL PROTECTED]> wrote: > Seen it already but looks to complicated. Someone knows a better way? What about the tree control's GetSelection method? That seems to return the TreeItemId. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: OOP books?

2008-10-15 Thread Mike Driscoll
On Oct 15, 1:02 pm, Ken D'Ambrosio <[EMAIL PROTECTED]> wrote: > Hi, all.  Over the years, I've programmed in a fair number of languages; > the ones with which I became most familiar were assembler, BASIC, > Pascal, and "lately" (the last fifteen years or so) Perl.  Now I'm > trying my hand at Pytho

Re: OOP books?

2008-10-15 Thread Mike Driscoll
On Oct 15, 1:57 pm, Alan G Isaac <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > I have yet to read a Python book that only focuses on the OOP part, > > http://www.amazon.com/Scripting-Objects-Comparative-Presentation-Obje... > > fwiw, > Alan Isaac Wow! That&

Re: IDE Question

2008-10-15 Thread Mike Driscoll
On Oct 15, 12:29 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > You can find a list and several reviews > onhttp://wiki.python.org/moin/IntegratedDevelopmentEnvironments > I think Wing IDE (http://www.wingware.com/products) is generally > thought to be the most sophisticated one; but it's neither

Re: Question related to wx and dynamically updating windows

2008-10-20 Thread Mike Driscoll
On Oct 20, 5:43 am, Andy <[EMAIL PROTECTED]> wrote: > I want to dynamically update a list of elements shown as a checkbox > list. A file is used to store the elements, and elements can be added > and deleted from the list. The trouble is that the window is not > properly updated after deleting/addi

Re: p2exe for python 2.6

2008-10-21 Thread Mike Driscoll
On Oct 21, 9:44 am, alessio211734 <[EMAIL PROTECTED]> wrote: > Hi! > > How can convert my python script in exe for the python version 2.6? > > Thanks in adavance. > > Ale. Download the py2exe source and try recompiling your script with it: http://sourceforge.net/project/showfiles.php?group_id=155

Re: why would 'import win32com' fail?

2008-10-23 Thread Mike Driscoll
On Oct 23, 2:21 pm, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > >       import win32com >       >       blah, blah > > I try that from my Python shell and it fails. What am I missing here? > > TIA, > > Bill Dunno.

Re: ANN: gui_support, a convenience library for wxPython

2008-10-23 Thread Mike Driscoll
On Oct 23, 2:14 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 23, 2008, at 11:50 AM, Stef Mientki wrote: > > > gui_support is library for easy creation of GUI designs in wxPython. > >  ... > > Brief documentation can be found here > >http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_gui_

Re: crossplatform standalone python apps

2008-10-23 Thread Mike Driscoll
On Oct 17, 1:59 am, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I like to create a cross-platform standalone python application, like > Mac OS *.app dirs. The idea is to distribute a zip file containing > everything (the python interpreter and all) so that a user just unzips >

Re: Py2exe and Module Error...

2008-10-24 Thread Mike Driscoll
On Oct 23, 5:02 pm, [EMAIL PROTECTED] wrote: > On Oct 22, 8:33 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Wed, 22 Oct 2008 20:34:39 -0200, <[EMAIL PROTECTED]> escribió: > > > > I am using py2exe and everything is working fine except one module, > > > ClientCookie, found here:

Re: from package import * without overwriting similarly named functions?

2008-10-24 Thread Mike Driscoll
On Oct 24, 1:06 pm, Reckoner <[EMAIL PROTECTED]> wrote: > I have multiple packages that have many of the same function names. Is > it possible to do > > from package1 import * > from package2 import * > > without overwriting similarly named objects from package1 with > material in package2? How abo

Re: Urllib vs. FireFox

2008-10-24 Thread Mike Driscoll
mazon, then you might find this module helpful: http://pypi.python.org/pypi/Python-Amazon/ --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python barcode decoding

2008-10-24 Thread Mike Driscoll
On Oct 24, 12:05 pm, Robocop <[EMAIL PROTECTED]> wrote: > Does anyone know of any decent (open source or commercial) python > barcode recognition tools or libraries.  I need to read barcodes from > pdfs or images, so it will involve some OCR algorithm.  I also only > need to read the code 93 symbol

Iowa Python User's Group Meeting Next Week!

2008-10-26 Thread Mike Driscoll
e found at http://www.ipug.pythonlibrary.org --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing MS word docs -- tutorial request

2008-10-29 Thread Mike Driscoll
On Oct 29, 4:32 am, Okko Willeboordsed <[EMAIL PROTECTED]> wrote: > Get a copy of;  Python Programming on Win32, ISBN 1-56592-621-8 > Use Google and VBA for help > > [EMAIL PROTECTED] wrote: > > All, > > > I am trying to write a script that will parse and extract data from a > > MS Word document.  

Re: Graphical object browser

2008-10-30 Thread Mike Driscoll
On Oct 30, 8:33 am, Propad <[EMAIL PROTECTED]> wrote: > On Oct 30, 2:10 am, Jason <[EMAIL PROTECTED]> wrote: > > > Hooray! I discovered PyCrust. I made this script (for Linux - under > > Win, you could just have all but the first line as a python file and > > run it directly): > > > #!/usr/bin/pyth

Re: py2exe

2008-10-30 Thread Mike Driscoll
On Oct 30, 7:19 am, Gandalf <[EMAIL PROTECTED]> wrote: > I'm new to py2exe. > > i'm using python 2.5 on XP > and py2exe 0.6.6 > > does someone know what may be wrong with this script: > > from distutils.core import setup > > import py2exe > > setup(console=['babylon.py'], > > options = { > > "py2ex

Re: Executing a hidden/background program

2008-11-01 Thread Mike Driscoll
Jim, On Sat, Nov 1, 2008 at 6:02 PM, <[EMAIL PROTECTED]> wrote: > Using wxPython, I'm looking to build a GUI app for a daemon-based app, > on Win32 platform, how would I go about executing the daemon app so it > stays in the background when the Py app is running? It's critical that > the child pr

Re: Which was the best Lib of GUI for python

2008-11-04 Thread Mike Driscoll
On Nov 4, 9:39 am, Joe Strout <[EMAIL PROTECTED]> wrote: > On Nov 3, 2008, at 10:53 PM, 3000 billg wrote: > > > I am a leaner. for your experience. Which GUI Lib will be the best   > > for Python? wxpython, Tkinter or... > > I'm sure you'll get as many opinions on this as there are libraries.   > H

<    1   2   3   4   5   6   >