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

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: 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: 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: 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: 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: 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: 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: 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: 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 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
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: 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: 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: 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: 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: 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
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: 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
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: 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, 4:47 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > [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.

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

2008-06-10 Thread Mike Driscoll
Evan, > > > I finally figured out how to check out the code. I'm at work now, > > where I only have VS2008 installed so I'll have to wait until I get > > home this evening to try compiling it. I'll let you know if I have any > > luck. > > > --

Re: Python doesn't understand %userprofile%

2008-06-11 Thread Mike Driscoll
Roberts, [EMAIL PROTECTED] > Providenza & Boekelheide, Inc. You can use it at the Run command or in Explorer too. If I type %username% in either place, it opens the following on my XP machine: C: \Documents and Settings\Mike Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Manipulation and Frames

2008-06-11 Thread Mike Driscoll
d. Hopefully this code snippet gives you the general idea. Either way, I highly recommend subscribing to the wxPython user's group. You'll learn a lot and there are a lot of helpful (and knowledgeable) people on there, including a couple of core developers. You will find the me

Re: convert sqlite ANSI to UTF-8

2008-06-11 Thread Mike Driscoll
ode5.html#SECTION00513 http://www.diveintopython.org/xml_processing/unicode.html http://evanjones.ca/python-utf8.html http://www.reportlab.com/i18n/python_unicode_tutorial.html 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-11 Thread Mike Driscoll
On Jun 11, 12:38 pm, [EMAIL PROTECTED] wrote: > On Jun 10, 8:50 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > Evan, > > > > > > > > I finally figured out how to check out the code. I'm at work now, > > > > where I only ha

Re: ClassName.attribute vs self.__class__.attribute

2008-06-11 Thread Mike Orr
s__ in these cases to allow users to extend my class. It's a little annoying that if you want to print a class's name in some unknown object, you have to use obj.__class__.__name__ if it's an instance, and obj.__name__ if it's a class. I sometimes wish classes had a .__cl

Re: Making wxPython a standard module?

2008-06-12 Thread Mike Driscoll
atform way (for the most part) because they use the actual widgets sets of the OS. Tkinter draws everything and can look kind of weird on Windows, although I have seen some very nice looking programs that use it. Of course, wx doesn't really do "skinning", so in that respect it ma

Re: Setting Focus

2008-06-13 Thread Mike Driscoll
style=wx.STAY_ON_TOP| wx.DEFAULT_FRAME_STYLE) Notice that I also passed it the wx.DEFAULT_FRAME_STYLE style flag. This should give you the minimize, maximize and close buttons too. If you do not pass that extra flag, then the frame will not have that functionality and you'll have to kill yo

Subclassing list, what special methods do this?

2008-06-13 Thread Mike Kent
For Python 2.5 and new-style classes, what special method is called for mylist[2:4] = seq and for del mylist[2:4] (given that mylist is a list, and seq is some sequence)? I'm trying to subclass list, and I'm having trouble determining what special methods I have to override in my class for the abo

Re: Subclassing list, what special methods do this?

2008-06-14 Thread Mike Kent
On Jun 13, 8:43 pm, Matimus <[EMAIL PROTECTED]> wrote: ...chop... > So, it looks like as long as you want to subclass list, you are stuck > implementing both __*slice__ and __*item__ methods. > > Matt Thanks. That was clear and concise, just what I needed. -- http://mail.python.org/mailman/listi

Re: Making wxPython a standard module?

2008-06-15 Thread Mike Driscoll
d with Mono, you get a mostly cross-platform kit to boot. > -- > Grant Edwards                   grante             Yow! Those people look >                                   at               exactly like Donnie and >                                visi.com            Marie Osmond!! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Notify of change to list

2008-06-16 Thread Mike Kent
I recently wanted to do the same kind of thing. See this tread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/f27c3b7950424e1c for details on how to do it. -- http://mail.python.org/mailman/listinfo/python-list

Re: text alignment

2008-06-17 Thread Mike Driscoll
ndow widget can only display simple html. So, while you cannot use CSS, you should be able to use the simple html alignment directives. Check out the following site for pointers: http://www.htmlite.com/lite008.php If you want to be able to use CSS and javascript, you'll want to use the A

Re: text alignment

2008-06-17 Thread Mike Driscoll
On Jun 17, 12:59 pm, Gandalf <[EMAIL PROTECTED]> wrote: > On Jun 17, 7:49 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Jun 17, 11:45 am, Gandalf <[EMAIL PROTECTED]> wrote: > > > > On Jun 17, 6:43 pm, Gandalf <[EMAIL PROTECTED]> wro

Re: text alignment

2008-06-17 Thread Mike Driscoll
actions with your website, than it should work in the embedded browser just as well as it would in a non-embedded one. > If not, Is there any way to generate dynamic GUI (one that can change > according to the user input) with HTML-CSS- javascript similar > environment? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Google Module?

2008-06-18 Thread Mike Driscoll
hon-client/ It hooks into most of Google's APIs. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe & application add-ons

2008-06-19 Thread Mike Driscoll
eeze" modules. As I understand it, you can use them to just distribute your pyc files. This makes updates very small, or so I've heard. I haven't tried it yet. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple wxPython SetLabel question

2008-06-19 Thread Mike Driscoll
and how they get them fixed. Here's the link: http://wxpython.org/maillist.php --- 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/ruby question..

2008-06-19 Thread Mike Driscoll
ile "", line 1, in ? > ImportError: No module named subprocess > -- > Aahz ([EMAIL PROTECTED])           <*>        http://www.pythoncraft.com/ > > "as long as we like the same operating system, things are cool." --piranha The subprocess module supercedes os.popen*, os

Re: passing control to other window

2008-06-25 Thread Mike Driscoll
ld get you started. Unfortunately, I don't use Tkinter much any more as I went to wxPython instead. Good luck! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: how to give focus to another application

2008-06-25 Thread Mike Driscoll
or this as you would almost certainly have to use some kind of low-level calls to get handles on processes you didn't create. Thus, the likelihood that there are cross-platform methods is pretty low. --- Mike Driscoll Blog: http://blog.pythonlibrary.org Pyth

Re: shorten path to files

2008-06-27 Thread Mike Driscoll
and in > Windows such a path is too long with the result that the file is not > found (though it is there). > > Is there any way around this? > > Thanks > Francesco Map a drive to the path or if the path is to a Linux box, create a symbolic link. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Mike Driscoll
to signify that what follows is a decorator. They're kind of cool and kind of confusing. Basically they dynamically alter a function, method or class and gives them additional functionality. It's kind of like calling a function recursively. Check out the following links: http://www.python.org/dev/peps/pep-0318/ http://wiki.python.org/moin/PythonDecorators http://www.ibm.com/developerworks/linux/library/l-cpdecor.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert string to char array

2008-07-01 Thread Mike Kent
On Jul 1, 2:49 pm, "Brandon" <[EMAIL PROTECTED]> wrote: > How do I convert a string to a char array?  I am doing this so I can edit > the string received from an sql query so I can remove unnecessary > characters. Answering your specific question: Python 2.5.1 (r251:54863, Mar 31 2008, 11:09:52)

Re: wxPython: How can I get window's HANDLE in wxPython.

2008-07-03 Thread Mike Driscoll
on the PyWin32 user's group. Otherwise, follow Paul's suggestion. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Mike Driscoll
lacing the folder in site-packages enough? Usually. Sometimes you have to add the package to the Path too though. > > these setup.py-files often dont work but normally it still works. I rarely have any trouble with them on Windows, although the troublesome ones do exist. Mike -- http:/

Re: distutils - setup - lib problem

2008-07-03 Thread Mike Driscoll
27;, >       py_modules=['py_ica'], >       data_files=[(".", ["wrap_ica.so"]), >                  ] >       ) > - > > Greetings, Uwe Try the distutils group. They'd probably be a little more helpful: http://mail.python.org/mailman/listinfo/distutils-sig Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: manipulating movie files with Python

2008-07-03 Thread Mike Driscoll
original which I'm interested in. Is there a Python library which could > already perform such magic? Thanks for any suggestions. > > Best regards, > Tim You might check these out: http://pymedia.org/ http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: controlling the windows

2008-07-03 Thread Mike Driscoll
ogramming-11/writing-a-wizard-with-tkinter-353083.html I use wxPython myself and it's fairly trivial to do it in that toolkit. Hopefully the Tkinter gurus will jump in here. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI Programming by hand not code with Python Code

2008-07-07 Thread Mike Driscoll
ect. > > Thanks in advance I think Dabo also has a way to do some Visual programming too. And there's also XRC. See the following links for more info: http://dabodev.com/ http://xrced.sourceforge.net/ Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi there! I need what is probably a very basic lesson in events....

2008-07-07 Thread Mike Driscoll
elf, link): # do something here pass However, for wxPython questions, it's best to post to the wxPython user's group. They are very knowledgeable there. http://wxpython.org/maillist.php Hope that helps. --- Mike Driscoll Blog: http://blog.pythonlibra

Re: win32com extension documentation/API

2008-07-07 Thread Mike Driscoll
re's also the PyWin32 mailing 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: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
win32 modules installed or this won't work. Here's the link to PyWin32 group: http://mail.python.org/mailman/listinfo/python-win32 That should get you going...hopefully --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
ger Upole's answer from the other day: > > http://mail.python.org/pipermail/python-win32/2008-June/007796.html > > TJG Crumb! That's way easier than the one I mentioned! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: VNC capture in python

2008-07-07 Thread Mike Driscoll
some kind of automation techniques, SendKeys, and/ or the subprocess module. If you can find a VNC program that has a COM interface, then you may be able to use Python's win32com module, which is a part of the win32 package. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make python scripts .py executable, not bring up editor

2008-07-08 Thread Mike Driscoll
our command line window though, as it doesn't always take affect on open windows. HTH --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question

2008-07-09 Thread Mike Driscoll
ndows Management Instrumentation". So it's not going to work on anything other than a Windows box. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: sage vs enthought for sci computing

2008-07-09 Thread Mike Hansen
gebra problems. You also get all of the symbolic and exact arithmetic which may or may not be beneficial for your application. Sage also comes with libraries so that you can script Octave or Matlab or most any other system. --Mike Full disclosure: I'm a Sage developer :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: python scalability

2008-07-10 Thread Mike Hansen
nvincing myself, let alone him. > > If you are involved in this kind of thing please get in touch with me. While Sage ( http://www.sagemath.org ) is more of a library than an application, it is approximately 350k lines of Python and Cython (in roughly a 2 to 1 ratio). I think it has scale

Re: wxPython code giving strange errors.

2008-07-13 Thread Mike Driscoll
here, but can anyone shed some > light on this? This code works "as is" on Windows XP. However, I have gotten this error when trying to run it from IDLE and I've heard that that can happen in other Tkinter-based IDEs. Try running it from the command line and I'll bet you won't get that error. Also, there's a great wxPython user's group you can join from the official website: www.wxpython.org Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: a module.pth question

2008-07-14 Thread Mike Driscoll
pth and it looks like it should be: .\Multimedia\pyglet-1.0 But I don't really see any reason not to do it the way you were earlier with the full path name. Besides, you should be able to install pyglet to your site-packages folder. Or you could use buildout if you're just testing modules and you don't want to screw up your namespace. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python To Launch Python

2008-07-14 Thread Mike Driscoll
new process, but > I thought I would check to see if anyone else has had the need to > perform a task similar to this one. > > AHA As an alternative, you may be able to use the subprocess module of Python to do this too. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i save my command prompt screen?

2008-07-16 Thread Mike Driscoll
ark" and then select the text. Hit to copy it to the clipboard. Then you can paste it into any text editor you like. > Steve > [EMAIL PROTECTED] Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe issues with pictures and icons

2008-07-16 Thread Mike Driscoll
with-pictures-and-icons-tp1849390... > Sent from the Python - python-list mailing list archive at Nabble.com. Put the part of the code that needs the ico file(s) into a try/except block. You could also try reading the py2exe wiki and tutorials. This one looks like it has relevant data: http

Re: New to Python - Accessing Lotus Notes

2008-07-16 Thread Mike Driscoll
323756.html http://www.velocityreviews.com/forums/t350942-python-and-lotus-notes.html HTH Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe issues with pictures and icons

2008-07-16 Thread Mike Driscoll
On Jul 16, 3:22 pm, Alexnb <[EMAIL PROTECTED]> wrote: > Alexnb wrote: > > > Mike Driscoll wrote: > > >> On Jul 16, 1:37 pm, Alexnb <[EMAIL PROTECTED]> wrote: > >>> Hello > > >>> I am sure most of you are familiar with py2exe. I am havi

Re: Distributing Python App

2008-07-18 Thread Mike Driscoll
t; > Thanks for your help. > > Kevin There is a variety of packaging programs. For Windows, you can use py2app and py2exe. I think the former can also be used for Mac and maybe Linux. If you are doing it on Windows, I would recommend packaging it with one of those and then using something

Re: Writing a program under GNU/Linux for MS Windows.

2008-07-18 Thread Mike Driscoll
Technically, you can probably write the code for the service in Linux, but I doubt you could test it. Here are some links on the subject, though: http://essiene.blogspot.com/2005/04/python-windows-services.html http://agiletesting.blogspot.com/2005/09/running-python-script-as-windows.html Mike -- ht

Proper way to query user and group database on a Unix host?

2008-07-22 Thread Mike MacCana
sers = commands.getoutput('getent group '+groupname).split(':',-1)[3].split(',') Cheers, Mike Mike MacCana Technical Specialist Australia Linux and Virtualisation Services IBM Global Services Level 14, 60 City Rd South

Re: Raw Strings (I Think)

2008-07-23 Thread Mike Driscoll
c:\\test\ \emailMess.xml', 'c:\\test\\Eula.txt', 'c:\\test\\fasta.txt', 'c:\\test \\Funds.txt', 'c:\\test\\Funds2.txt', 'c:\\test\\Gmane.newsrc', 'c:\ \test\\groups.ini', 'c:\\test\\hammy.doc'] Now, if I use os.system like this, it works: os.system('notepad %s' % x[1]) This opens notepad with my *.csv file just fine. Windows XP, Python 2.5.2. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: need thumbnail from video

2008-07-23 Thread Mike Driscoll
for windows.  Hopefully, > someone has had to do this in the past and knows what has to be done. > > Thanks in Advance, > Johnf PyMedia works on Windows too, according to their website. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Proper way to query user and group database on a Unix host?

2008-07-23 Thread Mike MacCana
missed this. Thanks to the other posters too. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Questions on 64 bit versions of Python

2008-07-25 Thread Mike Driscoll
> > Should that matter?  Isn't IronPython pure CLR? > > IronPython is written in C# and runs in/with the CLR, if that's what you mean. Well, IronPython one works with the CLR and is equivalent to Python 2.4, whereas IronPython 2 works with the DLR and is equivalent to Python 2.5 Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling external program from within python

2008-07-25 Thread Mike Driscoll
> > thanks i advance! > manolis There are probably many ways to do this. I would recommend checking out the subprocess module and see if it does what you want. Or you could learn a little Tkinter or wxPython and use that to get the user's variable. Or you could even do i

Re: Calling external program from within python

2008-07-25 Thread Mike Driscoll
On Jul 25, 9:28 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Mike Driscoll schrieb: > > > On Jul 25, 7:56 am, Emmanouil Angelakis <[EMAIL PROTECTED]> > > wrote: > >> Hi, > > >> I am tryiong to do something obviously trivial such a

Re: wx.Timer not working

2008-07-26 Thread Mike Driscoll
t; app     = MyApp(0) > app.MainLoop() > > Thanks for any advice!! > > Michael I'm not seeing anything either. Please post this to the wxPython user's group for additional help: http://www.wxpython.org/maillist.php Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.Timer not working

2008-07-26 Thread Mike Driscoll
On Jul 26, 5:22 pm, [EMAIL PROTECTED] wrote: > On Jul 26, 3:13 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Jul 26, 2:33 pm, [EMAIL PROTECTED] wrote: > > > > Windows XP SP3 > > > Python 2.5 > > > wx.version() = '2.8.1.1 (ms

Re: how to upload files to "google code" filesection ?

2008-07-28 Thread Mike Driscoll
solution ? > > thanks, > Stef Mientki You should be able to use urllib to do that. The following link has a recipe: http://code.activestate.com/recipes/496685/ If you need to search Google Code, there's an API that appears to be exposed through their gdata module. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: how to upload files to "google code" filesection ?

2008-07-28 Thread Mike Driscoll
Stef, > Mike Driscoll wrote: > > On Jul 26, 12:43 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > >> hello, > > >> In a program I want to download (updated) files from google code (not > >> the svn section). > >> I could find a py

Interbase

2008-07-30 Thread Mike Hjorleifsson
Has anyone gotten python working with Interbase database platform ? I need to query some info from an interbase database on another server need a lil help getting started. -- http://mail.python.org/mailman/listinfo/python-list

<    18   19   20   21   22   23   24   25   26   27   >