Re: problems with opening files due to file's path

2008-06-10 Thread Mike Driscoll
Anyway, Google is your friend. Searching for "python subprocess" gives you this: http://docs.python.org/lib/module-subprocess.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with opening files due to file's path

2008-06-10 Thread Mike Driscoll
l), assuming that `full` is the name of a string. > > The real answer lies in fixing the code where you're assigning the > pathname to 'full', which you haven't posted. Please post the code where > you're assigning the pathname, or better yet, post the complete code > you're running. > > -- > Carsten Haesehttp://informixdb.sourceforge.net Sometimes I get too eager to help and don't do enough mental processing before answering. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with opening files due to file's path

2008-06-10 Thread Mike Driscoll
tfile(rvariable) obviously won't work, do you know how to make that > > work > > or better yet, how to take a regular string that is given and make every > > single "\" into a double "\\"? > Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python doesn't understand %userprofile%

2008-06-10 Thread Mike Driscoll
Tim, I'm surprised you didn't mention your excellent winshell utility. I use it for this sort of issue all the time where I need to update files on login and I don't know the user's name beforehand. The winshell.Desktop() one has been a life saver and I think the OP could proba

Re: problems with opening files due to file's path

2008-06-10 Thread Mike Driscoll
n Mraz\\I'm Yours (Single)\x01 - I'm > Yours.wma" > > See it made each backslash into two, and the one by the parenthesis and the > 0 turned into an x > -- > View this message in > context:http://www.nabble.com/problems-with-opening-files-due-to-file%27s-pat... > Sent from the Python - python-list mailing list archive at Nabble.com. Yeah. You need to either double all the backslashes or make it a raw string by adding an "r" to the beginning, like so: os.startfile(r'C:\path\to\my\file') HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Instructions on how to build py2exe 0.6.8 (or an installer would be nice, too!)

2008-06-10 Thread Mike Driscoll
On Jun 10, 10:47 am, [EMAIL PROTECTED] wrote: > On Jun 10, 11:34 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > Maybe I'm missing something, but I can rename the executables I create > > using py2exe 0.6.6 to anything I want after they're created.

Re: Instructions on how to build py2exe 0.6.8 (or an installer would be nice, too!)

2008-06-10 Thread Mike Driscoll
3 used VS6. I have both, so I can try to compile an installer for any of those versions if you can link me to the source. Mike Python Extension Building Network: http:\\www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: chm file for download?

2008-06-10 Thread Mike Driscoll
es on Linux...or you can check out this link I found through Google: http://ayaz.wordpress.com/2006/10/27/reading-chm-chm-files-on-linux/ Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Py2exe and name space package

2008-06-10 Thread Mike Driscoll
.cn I include the lxml package in some of my programs and I do so by adding the following to the setup.py packages = ['lxml'] However, I'm not sure if what you want to add is truly a package. Yours might go into the "includes" directive. Currently, I use the GUI2Exe wrapper for py2exe as I find it easier to make complex executables. You can find it here: http://xoomer.alice.it/infinity77/main/GUI2Exe.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: TWITTER API and urllib2

2008-06-10 Thread Mike
On Tue, Jun 10, 2008 at 10:42 PM, Mike <[EMAIL PROTECTED]> wrote: > Hello, > > I've spent the last couple of nights hacking away at a Python wrapper for > the Twitter API that I can use for various things. > > I'm having trouble with one of the methods: user_time

TWITTER API and urllib2

2008-06-10 Thread Mike
Hello, I've spent the last couple of nights hacking away at a Python wrapper for the Twitter API that I can use for various things. I'm having trouble with one of the methods: user_timeline. ( http://groups.google.com/group/twitter-development-talk/web/api-documentation#HelpMethods ). This is th

Re: How to get full path to script?

2008-06-09 Thread Mike Driscoll
On Mon, Jun 9, 2008 at 12:42 PM, Sebastian lunar Wiesner <[EMAIL PROTECTED]> wrote: > Mike Driscoll <[EMAIL PROTECTED]> at Montag 09 Juni 2008 18:20: > >> On Mon, Jun 9, 2008 at 11:07 AM, kj <[EMAIL PROTECTED]> wrote: >>> In <[EMAIL PROTECTED]> &

Re: How to get full path to script?

2008-06-09 Thread Mike Driscoll
On Mon, Jun 9, 2008 at 11:07 AM, kj <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]> "Mike Driscoll" <[EMAIL PROTECTED]> writes: > >>For my compiled scripts, I usually use this variation: > >>path = os.path.abspath(os.path.join(os.pat

Re: How to get full path to script?

2008-06-09 Thread Mike Driscoll
mbolic links or compiled > scripts, depending on your requirements. > -- > http://mail.python.org/mailman/listinfo/python-list > For my compiled scripts, I usually use this variation: path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]))) It's always worked for me. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: how to combine 2 program?

2008-06-04 Thread Mike Driscoll
e program become one program, so that i > can input the imapdownload inputs via web? > thanks,  Any guidance in this would be greatly appreciated... I recommend re-posting to the Twisted mailing list: http://twistedmatrix.com/trac/wiki/TwistedCommunity Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Constructor re-initialization issue

2008-06-03 Thread Mike Kent
On Jun 3, 6:11 pm, [EMAIL PROTECTED] wrote: > Hello all, > > I have come across this issue in Python and I cannot quite understand > what is going on. > > class Param(): > def __init__(self, data={}, condition=False): > if condition: > data['class']="Advanced" > prin

Re: Books for programmers

2008-06-03 Thread Mike Driscoll
ython" is also very good and has a few big example programs to walk through. You might also find the Python Cookbooks handy. There's also "Python Power!" by Matt Telles, which is more of a reference book although not quite as dry as "Python Essential Reference" was. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: python blogs

2008-06-02 Thread Mike Driscoll
haven't really seen much that's updated regularly. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: platypus in page header

2008-06-02 Thread Mike Driscoll
etc. > > Thanks, > >    Laszlo >From looking at the docs, it sounds like you could do that, if you create your flowables correctly. You should probably ask over on the reportlab user's list though. Those guys would almost certainly know: http://two.pairlist.net/mailman/lis

Re: Good grid + calendar, etc.?

2008-06-01 Thread Mike Driscoll
On Jun 1, 8:28 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > On Sun, 1 Jun 2008 06:00:03 -0700 (PDT), Mike Driscoll > > <[EMAIL PROTECTED]> wrote: > >I recall that there is an advanced calendar widget that's been made by > >one of the regulars on the wxP

Re: Good grid + calendar, etc.?

2008-06-01 Thread Mike Driscoll
On Jun 1, 8:28 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > On Sun, 1 Jun 2008 06:00:03 -0700 (PDT), Mike Driscoll > > <[EMAIL PROTECTED]> wrote: > >I recall that there is an advanced calendar widget that's been made by > >one of the regulars on the wxP

Re: Good grid + calendar, etc.?

2008-06-01 Thread Mike Driscoll
but it's not a part of the official distribution at this time. You'll have to ask about calendar widgets and such there though. The grid can be quite advanced. Did you look at the wxPython demo? Or Dabo? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating event from event

2008-05-30 Thread Mike Driscoll
/www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm You probably either want the MouseEvents or to create an AcceleratorTable. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:42 am, Mike <[EMAIL PROTECTED]> wrote: > On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > >

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > I observed, that every thread reserved some memory, and after exit > > threa

Re: Remote Debugging for python.

2008-05-29 Thread Mike Driscoll
s/thread is at? > > Thank you, > Nitin. I've never done this, but I some Google-fu and found this stuff: http://hapdebugger.sourceforge.net/ http://wiki.python.org/moin/PythonDebuggers I suppose you could add some logging code to your program as well and check that from time to ti

Python threads and memory usage

2008-05-29 Thread Mike
Hi, I'm writing client-server application in Python. It's monitoring system, where server listen and waits for TCP connections, and every connection takes own thread. Every thread puts data from clients to Queue and exits. Then there is one DB loader thread, which loads all data from Queue to MySQ

Re: Finding file details...

2008-05-29 Thread Mike Driscoll
t the command prompt ( I hear there is a module > for fiddling with it) and work from there. > > Cheers for the links though, I will be checking them out :) You might also check out the ID3 library: http://id3-py.sourceforge.net/ It doesn't look like it's been updated for a f

Re: datetime.stdptime help

2008-05-28 Thread Mike Driscoll
ue: EST can be Eastern Summer Time (US) > as well as Eastern Summer Time (Australia). > > For working with time zones, I think that a module like > pytzhttp://pytz.sourceforge.net/ > may be better suited. > > My 0.02c. > Martin Yeah. The timezone part of Python's time modu

Re: Python database 'frontends', what's available?

2008-05-23 Thread Mike Driscoll
http://dabodev.com/ Not sure what else is out there. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: csv iterator question

2008-05-23 Thread Mike Driscoll
in reader: > > ...  print line > ... > > do i need to seek() the beginning of this file object ? any help is > greatly appreciated here. I think using seek() is what you need as it is currently starting on the last line that it read, so to speak. You should have just tried it...experimenting is part of the fun of Python, after all. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Question

2008-05-23 Thread Mike Driscoll
, you can just tell the frame not to create the "X" button: self.frame = wx.Frame(None, -1, title="My Frame", style=wx.SYSTEM_MENU) However, that makes it pretty annoying to close. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Question

2008-05-23 Thread Mike Driscoll
On May 23, 12:02 pm, Gandalf <[EMAIL PROTECTED]> wrote: > On May 23, 6:25 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On May 23, 10:45 am, Gandalf <[EMAIL PROTECTED]> wrote: > > > > How can i bind function that handle the mouse c

Re: Another Question

2008-05-23 Thread Mike Driscoll
api/wx.CloseEvent-class.html So you'll want to bind your frame to EVT_CLOSE. You can disable the "X" in your frame's window by using non-standard style parameters. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: WXpython Question

2008-05-23 Thread Mike Driscoll
StaticText: self.myText = wx.StaticText(panel, 15, "Hello" ,(30, 70) , style=wx.ALIGN_CENTRE) Then you can change your text by adding this to your OnClick event handler: self.myText.SetLabel("goodbye") Have fun! And remember, there's a great wxPython mailing list too: http://www.wxpython.org/maillist.php Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Advice from senior Members

2008-05-23 Thread Mike Driscoll
s to keep your view (the GUI) separate from the logic (the controller) and (I think) the model controls the data access. Anyway, it's explained much better at these sites: http://wiki.wxpython.org/ModelViewController http://wiki.wxpython.org/wxPython%20Patterns http://en.wikipedia.org/wiki/

Re: Restarting a program

2008-05-22 Thread Mike Driscoll
On May 22, 1:38 pm, Geoldr <[EMAIL PROTECTED]> wrote: > On May 22, 10:07 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On May 22, 10:59 am, Geoldr <[EMAIL PROTECTED]> wrote: > > > > Hello all, I have written a simple program, and at the end

Re: php vs python

2008-05-22 Thread Mike Driscoll
keep my geezer brain sparking.  What say ye? > > nb TurboGears and Django are pretty cool Python web application frameworks. I would recommend looking at them too. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Restarting a program

2008-05-22 Thread Mike Driscoll
a function or class is probably the way to go. When I was doing C++, we'd just use a while loop for simple stuff, though. It really shouldn't be all that hard to tell the code to call up the beginning of the program again. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-05-22 Thread Mike Driscoll
p://www.torontolife.com/ ? It uses Django... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Print HTML from Python

2008-05-21 Thread Mike Driscoll
Golden's site? http://timgolden.me.uk/python/win32_how_do_i/print.html I use the one at the bottom for PDFs. I never see a print dialog, but it does leave Adobe running. If you're printing from Internet Explorer, you might look at the PAMIE project. http://pamie.sourceforge.net/ HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: List of disk drives on Windows?

2008-05-20 Thread Mike Driscoll
On May 20, 3:43 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > Mike Driscoll schrieb: > > > > > On May 20, 2:45 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > >> Bob Greschke wrote: > >>> This MUST have been asked before, but I can't seem t

Re: List of disk drives on Windows?

2008-05-20 Thread Mike Driscoll
\x00R:\\ \x00U:\\\x00X:\\\x00Y:\\\x00Z:\\\x00' Not exactly what I expected. Do I have to parse out the "\\\x00" myself or is there an information level switch I should add? > > 2)http://timgolden.me.uk/python/wmi_cookbook.html#find-drive-types This works as advertised. I w

Re: Distributing applications that use 3rd party modules

2008-05-20 Thread Mike Driscoll
). We do that here at work and I can develop my applications on my machine and then put them on there for anyone to use. That way they never have to install Python, let alone the bother of installing dependencies. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Running commands on cisco routers using python

2008-05-19 Thread Mike Driscoll
he best way > to achieve this. > > Thanks, > SPJ I think it depends on how you're connecting to the routers. Theoretically, you should be able to use Python's socket or ssh modules to connect to them, send commands and capture the output. Just experiment with one

Re: distutils directory problem

2008-05-19 Thread Mike Driscoll
               'test.pys', 'test.csv', 'test2.csv', \ >                                  'README', 'COPYING']}, > ) > > Thanks in advance > > Martin I highly recommend re-posting this to the distutils group. They have some excellent people over there that can probably tell you quite quickly what the issue is: http://mail.python.org/mailman/listinfo/distutils-sig Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How do *you* use Python in non-GUI work?

2008-05-19 Thread Mike Driscoll
have some scripts that can install various programs silently, such as Adobe Reader or Firefox. This is for work purposes as we have a specific set of applications that need to be installed on each machine. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Rpy Module

2008-05-18 Thread Mike P
Superb, thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing applications that use 3rd party modules

2008-05-18 Thread Mike Driscoll
On May 17, 10:13 am, eliben <[EMAIL PROTECTED]> wrote: > On May 17, 3:23 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On May 17, 4:42 am, eliben <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm getting into Python

Re: Distributing applications that use 3rd party modules

2008-05-17 Thread Mike Driscoll
f in it's own virtual world, so to speak. I'm planning on playing with it this week. Also, there's this site which has collected the various means of distributing Python apps: http://www.freehackers.org/Packaging_a_python_program Hope that helps! Mike -- http://mail.python.org/mailman/listinfo/python-list

Rpy Module

2008-05-16 Thread Mike P
Hi experts, I've just seen there is an R module, what i can't see easily is if you can / how to import other modules for R into the Rpy module Can anyone advise on this? Cheers Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: encoding problem

2008-05-16 Thread Mike Driscoll
; -- > Luis Zarrabeitia (aka Kyrie) > Fac. de Matemática y Computación, UH.http://profesores.matcom.uh.cu/~kyrie I recommend studying up on Python's Unicode methods and the codecs module. This site actually talks about your specific issue though and gives pointers: http://evanjones.ca/python-utf8.html HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 8:09 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On May 15, 2:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > >> Mike Driscoll wrote: > >>> Hi, > >>> I've had this niggling issue from time to time. I

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 15, 8:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 15 May 2008 12:13:56 -0300, Mike Driscoll <[EMAIL PROTECTED]>   > escribió: > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the use

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 1:51 am, Chris <[EMAIL PROTECTED]> wrote: > On May 15, 5:13 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the user's desktop t

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 5:44 am, Wolfgang Draxinger <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > Hi, > > > I've had this niggling issue from time to time. I want to > > create a shortcut on the user's desktop to a website that > > specifically lo

Re: Problem creating a shorcut

2008-05-15 Thread Mike Driscoll
On May 15, 2:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > Hi, > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the user's desktop to a website that specifically loads > > Firefox even

Problem creating a shorcut

2008-05-15 Thread Mike Driscoll
work): "C:\"C:\Program Files\Mozilla Firefox\firefox.exe" https: \www.myCompanyWebsite.com\auth\preauth.php" If I leave the website off, it works. If I leave the path to Firefox out, it works too. Is there another method I can use other than creating the shortcut by hand and using the shut

Re: feedparser

2008-05-13 Thread Mike
On Tue, May 13, 2008 at 11:16 PM, <[EMAIL PROTECTED]> wrote: > On May 13, 6:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > En Tue, 13 May 2008 07:30:44 -0300, Mike <[EMAIL PROTECTED]> escribió: > > > > > > &

Re: list index out of range

2008-05-13 Thread Mike Kent
On May 13, 2:39 pm, Georgy Panterov <[EMAIL PROTECTED]> wrote: > > def deal_hand(deck): > HAND=[] > for _ in range(2): > i=random.randint(0,len(deck)) #produces a random card from the deck ^ Here i can be from 0 thru (the number of cards in the deck). > HAND.appen

Re: Literate programs in Python

2008-05-13 Thread Mike Driscoll
On May 13, 1:47 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On May 13, 1:44 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > On May 13, 10:28 am, Paul Miller <[EMAIL PROTECTED]> wrote: > > > > Does anyone know of any (preferably largish) examples of li

Re: Usenet

2008-05-13 Thread Mike Driscoll
you could subscribe to c.l.py as a mailing list here: http://mail.python.org/mailman/listinfo/python-list Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: usage of python

2008-05-13 Thread Mike Driscoll
t; Any pointers would be appreciated > > Thanks, > Rajarshi Take a look at http://python.org/ It lists various companies that use Python. There's also Sourceforge, which you can use to list a lot of projects made with Python. Spambayes and bittorrent are a couple of the more "famous" ones. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Literate programs in Python

2008-05-13 Thread Mike Driscoll
o and I've been to literateprogramming.com, but any additional > pointers would be much appreciated!) > > Thanks, > > Paul Check out Zope, bittorrent, or Editra. You should just go to SourceForge and do a search for projects done in Python. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Running compiled windows service python script

2008-05-13 Thread Mike Driscoll
on: http://agiletesting.blogspot.com/2005/09/running-python-script-as-windows.html http://essiene.blogspot.com/2005/04/python-windows-services.html http://tgolden.sc.sabren.com/python/wmi.html Hope that helps! Mike -- http://mail.python.org/mailman/listinfo/python-list

feedparser

2008-05-13 Thread Mike
Hello, I'm trying to use the feedparser module (http://www.feedparser.org/). Is it possible to use this without running the setup program? I don't see why not, seems like I'm missing something obvious. My directory structure is: myprogram.py /feedparser /feedparser.py I know I can

Re: Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
On May 10, 2:23 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I just can't figure out how to get the metadata, I guess. > > See > > http://wiki.python.org/moin/PyPiXmlRpc > > Regards, > Martin Ah-so. Most helpful, Martin. Thanks a lot!

Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
ould be great. I'm still learning HTML/XML parsing techniques and am having trouble wrapping my mind around it. Thanks! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I "delete" the namespace of a module that i import?

2008-05-09 Thread Mike Driscoll
a module that i import? >    thanks. I did some searching and haven't found much. The closest I've found so far is this old thread: http://mail.python.org/pipermail/python-list/2000-February/022526.html You might look at IDLE's code to see what it does when you tell it to "restart" too. Good luck! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: help needed!

2008-05-09 Thread Mike Driscoll
his message in > context:http://www.nabble.com/help-needed%21-tp17148388p17148388.html > Sent from the Python - python-list mailing list archive at Nabble.com. Or use the glob module and a loop... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: help needed!

2008-05-09 Thread Mike Driscoll
his message in > context:http://www.nabble.com/help-needed%21-tp17148388p17148388.html > Sent from the Python - python-list mailing list archive at Nabble.com. Use a loop, probably in combination with os.walk. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonwin

2008-05-09 Thread Mike Driscoll
; fromhttps://sourceforge.net/projects/pywin32/(make sure you get the right > version) > > -- > Gabriel Genellina Ah. That's where I got it. Sorry for promulgating my own confusion! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonwin

2008-05-09 Thread Mike Driscoll
; Thanks > > Clive I have PythonWin installed in my Start Menu --> Programs --> Python 2.5. I may have installed the ActiveState version though. Just check if it's there on your system and if not, you can follow Niklas's advice. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUIs and custom controls

2008-05-08 Thread Mike Driscoll
xpython.org/CreatingCustomControls And here's another article: http://www.zetcode.com/wxpython/customwidgets/ I find their mailing list to have extremely knowledgeable users that are happy to help newbs too. Hopefully someone with Tkinter experience can tell you about it robustness or l

Re: What is the purpose of ptyhon in Windows

2008-05-07 Thread Mike Driscoll
please help me with this, > Is there a possibilty to work on bigger projects with Python There are lots of bigger projects to work on. Check out Spambayes, the original bittorrent, or Zope for some of the more well known ones. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning through Windows registry...

2008-05-07 Thread Mike Driscoll
On May 7, 9:19 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On May 7, 4:45 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> In a spirit of being helpful... :) > > [... snip registry walker ...] > > > This is pretty cool stuff, Tim.

Re: loading folder list from my mailbox in python

2008-05-07 Thread Mike Driscoll
/pypi/imap-utils/0.3 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52299 I think at least one of those will get you started. If you're talking about communicating with Exchange, then you may have to use some win32 or ctypes methods. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP + TinyButStrong Python replacement

2008-05-07 Thread Mike Driscoll
uired (better: i prefer > plain old procedural programming). > > any help? thanks in advance Did you look at TurboGears or Django? TG uses Kid in the 1.x series and Genshi in 2.x (I think) for templating purposes. There's also Cheetah, one of the more powerful Python t

Re: Scanning through Windows registry...

2008-05-07 Thread Mike Driscoll
quot;, data >       if type == _winreg.REG_SZ and "TJG" in data: >         _winreg.SetValueEx (key.key, name, 0, type, data.replace ("TJG", > "XYZ")) > > > > TJG This is pretty cool stuff, Tim. Of course, it would also seriously screw up some programs if you decided to replace the wrong phrase. Just a word of warning to the OP: be sure to make a backup of the registry before doing something like this. Trying to fix a messed up registry from the command line is not a fun way to spend the afternoon. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I missing something with Python not having interfaces?

2008-05-06 Thread Mike Driscoll
very method of the class it is inheriting from. You can just override those that you want and leave the others alone. Hopefully I understand this correctly...otherwise, just ignore my babbling and hand waving. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Browser + local Python-based web server vs. wxPython

2008-05-05 Thread Mike Driscoll
run TurboGears, Django and CherryPy locally as well as with Apache, so they might garner more of your attention. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Where are Tkinter event.type constants defined?

2008-05-05 Thread Mike Driscoll
's his Tkinter event page: http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm And there's this (less helpful): http://docs.python.org/lib/node699.html There's a whole chapter on events Grayson's Tkinter book, but I'm not seeing constants defined. I think they m

Re: IPv6 and Python

2008-05-02 Thread Mike Driscoll
installed as a Network Component via the Network Connections Properties dialog box) and your routers must be upgraded to support IPv6 protocols along with IPv4." See http://articles.techrepublic.com.com/5100-10878_11-5727015.html Python's socket module also talks about IPv6 calls her

Re: pil:effbot and pythonware offline

2008-05-02 Thread Mike Driscoll
ewsgroup, > or the planet-blogs. > > Is it just me? and does anyone know where I can find ImageTK? > > Cheers, > > stephen They both seem to be up now. Maybe there was some simultaneous server maintenance? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: SSL through python. possible ?

2008-05-02 Thread Mike Driscoll
On May 2, 1:20 pm, Heikki Toivonen <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On Apr 29, 8:56 am, TkNeo <[EMAIL PROTECTED]> wrote: > >> I need to do SSL file transfer using python? Is there a library i can > >> use ? > > >http://sandb

Re: pygame.key.get_pressed[K_a], K_a is not defined!?

2008-05-02 Thread Mike Driscoll
me docs to really know. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a list from a inconsistent text file

2008-05-02 Thread Mike Kent
On May 2, 9:47 am, Jetus <[EMAIL PROTECTED]> wrote: > Hello Marc; > Thanks for the input! I am worried about the comma in the "" data > items, how do I tell Python to look for the "" data first, then use > the comma separator? Marc has already given you the correct answer. You really should read

Re: Python documentation

2008-05-02 Thread Mike Driscoll
using wxPython for my GUI work, so I'll also recommend Robin Dunn's "wxPython in Action". Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: where do I begin with web programming in python?

2008-05-01 Thread Mike Driscoll
s on the topic: "Python Web Programming" by Steve Holden, and "Web Programming in Python" by Thiruvathukal. Check out the cgi-type stuff especially. Hope that helps some. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: send gpg encrypted emails (properly mime formatted)

2008-05-01 Thread Mike Driscoll
cess. Take a look at this for the gpg part: http://wiki.python.org/moin/GnuPrivacyGuard And the standard library has the email module which does mime formatting. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGame, window is not closing, tut not helping

2008-05-01 Thread Mike Driscoll
def __init__(self): >         pygame.sprite.Sprite.__init__(self) >         self.image, self.rect = load_image('snake.png',-1) >         self.pellets = 0 > > if __name__ == "__main__": >     MainWindow = PyManMain() >     MainWindow.MainLoop() I think the issue is that you're running it from within IDLE. It looks like pyGame's event loop and Tkinter's event loop interfere with each other. If you run the scripts from the command line, it works. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Mike Driscoll
On Apr 30, 1:09 pm, blaine <[EMAIL PROTECTED]> wrote: > On Apr 30, 1:14 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > blaine wrote: > > > The wxPython group is a bit stale compared to this group, so I'll give > > > it a shot :) > > >

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Mike Driscoll
es are masking the wx package. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe Icon Resources

2008-04-29 Thread Mike Driscoll
the py2exe mailing list and maybe the distutils mailing list if the fine people here don't have answers. https://lists.sourceforge.net/lists/listinfo/py2exe-users http://mail.python.org/mailman/listinfo/distutils-sig Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: SSL through python. possible ?

2008-04-29 Thread Mike Driscoll
ceforge.net/misc/python-ssl.html http://pypi.python.org/pypi/ssl/ http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/117004 HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Automating IE 6.0

2008-04-28 Thread Mike Driscoll
2 group: http://mail.python.org/mailman/listinfo/python-win32 You might also check out the PAMIE project: http://sourceforge.net/projects/pamie SendKeys would also work, but it's kind of messy. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Installed python 2.5 over 2.4 and lost installed packages

2008-04-27 Thread Mike Driscoll
ything. If you have some that have C/C++ links (such as PIL or pywin32), then you'll need to reinstall those manually. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Desktop notifications on Windows

2008-04-26 Thread Mike Driscoll
already running in fullscreen). wxPython can do this. They have a wx.PopupWindow that does this and comes with wxPython or you can use the more advanced custom Toasterbox widget that I found here: http://xoomer.alice.it/infinity77/main/freeware.html#toasterbox I've used both, but the latter gives more control of the "look & feel". Hope that helps! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: What to download when updating?

2008-04-26 Thread Mike Driscoll
I use GUI2Exe, a GUI to py2exe that makes it quite a bit easier to wrap these things: http://xoomer.alice.it/infinity77/main/GUI2Exe.html You just set Optimize and Compressed to 2 and Bundle Files to 1. I also use Inno Setup if I need an installer. Hope that helps! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: display monochromatic images wxPython

2008-04-25 Thread Mike Driscoll
) self.myImageObj = wx.StaticBitmap(self, wx.ID_ANY, wx.BitmapFromImage(img)) self.myImageObj.SetBitmap(wx.BitmapFromImage(img)) # refresh the widgets self.Refresh() # where "self" is a wx.Frame If that doesn't make sense or doesn't work in your case, please re- post the question to th

<    3   4   5   6   7   8   9   10   11   12   >