Re: Running commands on cisco routers using python

2008-05-19 Thread Mike Driscoll
On May 19, 10:18 am, SPJ <[EMAIL PROTECTED]> wrote: > Is it possible to run specific commands on cisco router using Python? > I have to run command "show access-list" on few hundred cisco routers and get > the dump into a file. Please let me know if it is feasible and the best way > to achieve th

Re: Distributing applications that use 3rd party modules

2008-05-20 Thread Mike Driscoll
On May 17, 4:42 am, eliben <[EMAIL PROTECTED]> wrote: > Hello, > > I'm getting into Python now after years of Perl, and as part of my > research I must understand how to do some common tasks I need. > > I have a bunch of Windows PCs at work to which I want to distribute an > application I've develo

Re: List of disk drives on Windows?

2008-05-20 Thread Mike Driscoll
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 to Google the right > > thing.  How can I get a list of drives on a Windows box, like ["C:\", > > "D:\"], like I can if I do something like listdir("/Volumes") on a

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
On May 21, 3:45 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am at a loss. This is slightly OT because it concerns Windows and > HTML printing. I would like to print a HTML document from Python, but > not showing the printing dialog. After numerous searches and trials I > came to t

Re: Python is slow

2008-05-22 Thread Mike Driscoll
On May 22, 11:14 am, cm_gui <[EMAIL PROTECTED]> wrote: > Python is slow.    Almost all of the web applications written in > Python are slow.   Zope/Plone is slow, sloow, so very slooow.  Even > Google Apps is not faster.   Neither is Youtube. > Facebook and Wikipedia (Mediawiki), written in PHP, ar

Re: Restarting a program

2008-05-22 Thread Mike Driscoll
On May 22, 10:59 am, Geoldr <[EMAIL PROTECTED]> wrote: > Hello all, I have written a simple program, and at the end of it, > instead of it closing I would like it to restart from the beggining. > Is there a way to do this? Put my code into a class function, or > something? > I guess I could do a wh

Re: php vs python

2008-05-22 Thread Mike Driscoll
On May 21, 3:10 pm, notbob <[EMAIL PROTECTED]> wrote: > I'm not posting this just to initiate some religious flame war, though it's > the perfect subject to do so.  No, I actaully want some serious advice about > these two languages and since I think usenet is the best arena to find it, > here ya'

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
On May 23, 8:02 am, flit <[EMAIL PROTECTED]> wrote: > Hello All, > > I am looking for some experience from the senior members. > Now I am doing a simple desktop application, this application will > have 3 main functions: > > 1- Read information about the desktop system; > 2- Interact with the user;

Re: WXpython Question

2008-05-23 Thread Mike Driscoll
On May 23, 8:24 am, Gandalf <[EMAIL PROTECTED]> wrote: > I try to reach a specific wx StaticText element's text and to change > it by clicking on a button > > now let's say the this is my element: > > wx.StaticText(panel, 15, "Hello" ,(30, 70) , style=wx.ALIGN_CENTRE) > > And this is my EVT_BUTTON

Re: Another Question

2008-05-23 Thread Mike Driscoll
On May 23, 10:45 am, Gandalf <[EMAIL PROTECTED]> wrote: > How can i bind function that handle the mouse clicking  window X event > or clicking alt+F4 > > thanks You really need to learn to ask good questions. Unless people dive into your previous posts, they won't know what Python GUI toolkit you

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
On May 23, 1:44 pm, Gandalf <[EMAIL PROTECTED]> wrote: > you've been very helpful but still i have only one problem. I wont the > window not to be close after clicking the X button. > I wont the program to stay on the toolbar > > thanks! Well then, in your event handler, just don't do anything. d

Re: csv iterator question

2008-05-23 Thread Mike Driscoll
On May 23, 3:36 pm, davidj411 <[EMAIL PROTECTED]> wrote: > When you save an open file to a variable, you can re-use that variable > for membership checking. > it does not seem to be that way with the csv.reader function, even > when set to a variable name. > > what is the best way to store the open

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

2008-05-23 Thread Mike Driscoll
On May 23, 1:59 pm, [EMAIL PROTECTED] wrote: > I'm desperately trying to move a Microsoft Access database application > (a simple accounts system I wrote myself) to Linux.  Python is one of > my preferred programming laguages so I wonder if there are any good > Python 'frameworks' for writing datab

Re: datetime.stdptime help

2008-05-28 Thread Mike Driscoll
On May 28, 12:19 pm, mblume <[EMAIL PROTECTED]> wrote: > Am Tue, 27 May 2008 12:37:34 -0700 schrieb Dennis Lee Bieber: > > >    From the library reference: > > """ > > Support for the %Z directive is based on the values contained in tzname > > and whether daylight is true. Because of this, it is pl

Re: Finding file details...

2008-05-29 Thread Mike Driscoll
On May 29, 5:26 am, Kalibr <[EMAIL PROTECTED]> wrote: > On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > > > > > You don't say, but I assume you're on Windows since you mention > > GetFileVersionInfo (which doesn't have anything to do with media > > files, by the way) and WMA. There

Re: Remote Debugging for python.

2008-05-29 Thread Mike Driscoll
On May 29, 2:09 pm, nkarkhan <[EMAIL PROTECTED]> wrote: > Newbie to python here..so bear with me. > > I used to be able to gdb to a target machine running c/c++ code and > see where my program was hanging, crashing, executing.. > > How do I do that with python? > I have multi-threaded python progra

Re: Generating event from event

2008-05-30 Thread Mike Driscoll
On May 30, 12:11 pm, Gandalf <[EMAIL PROTECTED]> wrote: > Hi Diez, I can't see how it  matter which GUI-Toolkit i uses because I > can combine libraries. > I think all that matter is that i work with windows XP. > > if you ever done something like that or you familiar with article > which can show

Re: Good grid + calendar, etc.?

2008-06-01 Thread Mike Driscoll
On Jun 1, 6:59 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > Hello > >         Since Python is such a productive language, I'd really like to be > able to use it to write GUI apps for Windows, but business apps > require rich widgets like (DB)grids, calendars, etc. > > The ones available in wxWid

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
On Jun 2, 1:16 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > Is it possible to use platypus in page header and footer? I need to > create a document with long paragraphs but also I need to put tables and > images in page header and multi line info in page footer with alignment etc. > > Thanks, > >  

Re: python blogs

2008-06-02 Thread Mike Driscoll
On Jun 2, 4:14 pm, [EMAIL PROTECTED] wrote: > On Jun 2, 2:49 pm, [EMAIL PROTECTED] wrote: > > > It seems like Python blogs are gaining popularity. It seems to me that > > they play a crucial role in promoting Python as a language. > > Neat!  Do blogs on your site have to be about Python programming

Re: Books for programmers

2008-06-03 Thread Mike Driscoll
On Jun 3, 5:45 am, V <[EMAIL PROTECTED]> wrote: > Hi Matt, > > and thank you very much for your answer. > > > Hm, depends of course, how good your programming skills are in the > > languages you knwo already, but I rely on the book "Beginning Python - > > From Novice to Professional" by Magnus Lie

Re: how to combine 2 program?

2008-06-04 Thread Mike Driscoll
On Jun 4, 8:53 am, [EMAIL PROTECTED] wrote: > i am a newbe in pyhton. > i am using "Twisted Network Programming Essentials By Abe Fettig" as my > tutorial. in that tutorial, i found 2 example, IMAPDOWNLOAD.py and > requesthandler.py > > my problem is how to combine those program become one program,

Re: How to get full path to script?

2008-06-09 Thread Mike Driscoll
On Mon, Jun 9, 2008 at 12:37 AM, bukzor <[EMAIL PROTECTED]> wrote: > On Jun 8, 12:52 pm, kj <[EMAIL PROTECTED]> wrote: >> In <[EMAIL PROTECTED]> "Mark Tolonen" <[EMAIL PROTECTED]> writes: >> >> >import os >> >print os.path.abspath(__file__) >> >> Great. Thanks! >> >> Kynn >> >> -- >> NOTE: In my a

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
On Jun 10, 8:15 am, "John Salerno" <[EMAIL PROTECTED]> wrote: > Is the chm doc file available for download from the Python website? I can't > seem to find it. It would be nice to read through while I'm at work (where I > don't have Python installed). > > Also, is it possible to use a chm file on Li

Re: Py2exe and name space package

2008-06-10 Thread Mike Driscoll
On Jun 10, 4:28 am, "Yuan HOng" <[EMAIL PROTECTED]> wrote: > Hi, > > I used to freeze my application into Windows executibles using py2exe. > Lately I started using several zope packages in my application, like > zope.interface. Now the freezed program can't run properly. Like the > following examp

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:04 am, [EMAIL PROTECTED] wrote: > Hello, > > I'm trying to build an executable with py2exe, but unfortunately the > version I have is 0.6.6, which has a rather annoying bug that doesn't > let you rename the executable file if you bundle everything in a > single executable. It seems fa

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
On Jun 10, 11:45 am, Alexnb <[EMAIL PROTECTED]> wrote: > Gerhard Häring wrote: > > > Alexnb wrote: > >> Okay, so what I want my program to do it open a file, a music file in > >> specific, and for this we will say it is an .mp3. Well, I am using the > >> system() command from the os class. [...] >

Re: Python doesn't understand %userprofile%

2008-06-10 Thread Mike Driscoll
On Jun 10, 11:11 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > In xp when I try os.path.getmtime("%userprofile/dir/file%") Python > > bites back with "cannot find the path specified" Since my script has > > to run on machines where the username is unspecified I need a fix

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

2008-06-10 Thread Mike Driscoll
On Jun 10, 1:25 pm, "Thomas Morton" <[EMAIL PROTECTED]> wrote: > maybe try string substitution... not sure if that's really the BEST way to > do it but it should work > > startfile(r"%s"%variable) I concur. That should work. A slightly more in depth example (assuming Windows): os.startfile(r'C:\

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

2008-06-10 Thread Mike Driscoll
On Jun 10, 2:09 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > Alexnb wrote: > > No this time it perhaps gave me the worst of all heres what I entered, and > > the output > > startfile(r"%s"%full)    ***full is the path*** > > > startfile(r"%s"%full) > > > WindowsError: [Error 2] The system ca

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

2008-06-10 Thread Mike Driscoll
On Jun 10, 1:57 pm, Alexnb <[EMAIL PROTECTED]> wrote: > That would work, but not for what I want. See the file could be anywhere on > the user's system and so the entire path will be unique, and that didn't > work with a unique path. What is the subprocess module you are talking > about? > As C

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. > > > - > > Mike > > > Python Extension B

Re: Python doesn't understand %userprofile%

2008-06-11 Thread Mike Driscoll
On Jun 11, 1:58 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > >In xp when I try os.path.getmtime("%userprofile/dir/file%") Python > >bites back with "cannot find the path specified" Since my script has > >to run on machines where the username is unspecified I need a fix.

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
On Jun 11, 10:04 am, Gandalf <[EMAIL PROTECTED]> wrote: > I used sqliteadmin to manage my sqlite database and I copy past > queries translated from mysql phpmyadmin output it worked (little > slowly but worked...), the only problem now is that sqliteadmin stored > my hebrew char as ANSI instead of

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

Re: Making wxPython a standard module?

2008-06-15 Thread Mike Driscoll
Grant, On Jun 14, 3:43 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-06-14, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > >> I've never used any of the designers, but I agree 100% that > >> wxPython code is nasty ugly. wxPython has a very un-Pythonic > >> API that's is, IMO, difficult to

Re: text alignment

2008-06-17 Thread Mike Driscoll
On Jun 17, 11:45 am, Gandalf <[EMAIL PROTECTED]> wrote: > On Jun 17, 6:43 pm, Gandalf <[EMAIL PROTECTED]> wrote: > > > Hi every one. What is the similar python WX style property for CSS > > text-align? > > > I need this item text to start from the right direction: > > > aaa= html.HtmlWindow(self, -

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
On Jun 17, 1:20 pm, Gandalf <[EMAIL PROTECTED]> wrote: > since you brought up this issue, please tell me where can I fine > menual for this library? You want the manual for wxPython? Go to the download page on the Official wxPython page and get the Docs & Demos package: http://wxpython.org/downloa

Re: Google Module?

2008-06-18 Thread Mike Driscoll
On Jun 18, 2:54 am, JulianMontez <[EMAIL PROTECTED]> wrote: > Just started learning Python and wanted to make a program that would > retrieve files that were indexed by Google. These files can be > filtered by their extensions, nothing too difficult. :) > > I wanted to know if there was a module th

Re: py2exe & application add-ons

2008-06-19 Thread Mike Driscoll
On Jun 19, 6:00 am, "Alex Gusarov" <[EMAIL PROTECTED]> wrote: > Hello, I've met a problem - I want my program working without Python > installation but I have some add-on mechanism (add-ons represented by > separate .py files, and application auto-recognize such files on > start). > > So, if I will

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
On Jun 19, 11:49 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Matt Nordhoff  <[EMAIL PROTECTED]> wrote: > > > > >You're supposed to use the subprocess module. > > Really?  Sez who? > > $ python > Python 2.3.4 (#1, Feb  2 2005, 12:11:53) > [GCC 3.4.2 20041017 (Red Hat 3.4.

Re: passing control to other window

2008-06-25 Thread Mike Driscoll
On 6/21/08, varun chadha <[EMAIL PROTECTED]> wrote: > i am trying to develop a application using Tkinter in which a new > window pops out on a particular button press.though i can pass control > automatically to that window using .force_focus() method and disabling > all my widgets in previous wind

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
On Jun 27, 8:01 am, cesco <[EMAIL PROTECTED]> wrote: > Hi, > > I need to retrieve the content of some files which are placed on a > network drive so in order to open them I need the full path to the > file. > Unfortunately some times the path is longer than 256 characters and in > Windows such a pa

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

2008-06-27 Thread Mike Driscoll
On Jun 27, 9:48 am, Evan <[EMAIL PROTECTED]> wrote: > HI, > > When I check example of "cmd2" module (a enhancement of cmd module), I > can not understand all, for example: the  character "@", > > + > def options(option_list): >      ..

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

2008-07-03 Thread Mike Driscoll
On Jul 2, 8:40 pm, "Leo Lee" <[EMAIL PROTECTED]> wrote: > I need a window's handle to be passed to external c++. > Thanks in advance Are you talking about a wxPython wx.Window object or an external window handle? If the latter, then I recommend asking about that on the PyWin32 user's group. Otherw

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Mike Driscoll
On Jul 3, 9:11 am, defn noob <[EMAIL PROTECTED]> wrote: > i unzipped and put the folder in site-packages. when i run setup.py > install nothing happens. > > when i do import pp from shell it complains it doesnt exist. What is "pp"? Parallel Python? > > isnt placing the folder in site-packages e

Re: distutils - setup - lib problem

2008-07-03 Thread Mike Driscoll
On Jul 2, 3:38 am, rocksportrocker <[EMAIL PROTECTED]> wrote: > Hi, > > I've got some problems with the following setup.py file. > using "python setup.py install -f" it shows that wrap_ica.so is copied > to /usr and not to /site-packages as I assumed. > What am I doing wrong ? I'm using Python

Re: manipulating movie files with Python

2008-07-03 Thread Mike Driscoll
On Jul 3, 12:15 pm, Tim Grove <[EMAIL PROTECTED]> wrote: > I would like to write a python script which could take a movie file name > (avi, mov, mpg) along with a start and stop time as parameters, and > return to me a  new movie file just containing that section of the > original which I'm interes

Re: controlling the windows

2008-07-03 Thread Mike Driscoll
On Jul 3, 2:16 pm, varun chadha <[EMAIL PROTECTED]> wrote: > i am developing an application using Tkinter where 'next'  button > takes to another window and removes the first one from screen and > 'back' button bring me back to previous window and so on. > though i am able to move from one window t

Re: GUI Programming by hand not code with Python Code

2008-07-07 Thread Mike Driscoll
On Jul 6, 9:33 pm, [EMAIL PROTECTED] wrote: > Is their a program that lets you design a GUI by hand (like gambas) > not by code (like wxpython) but the commands are in python? > > A program similar to gambas or vb > > Gambas with python code instead of gambas code would be perfect. > > Thanks in ad

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
On Jul 7, 11:16 am, Tim Golden <[EMAIL PROTECTED]> wrote: > korean_dave wrote: > > How do I use the win32com API to manipulate IE windows ALREADY open? > > > ie = Dispatch("InternetExplorer.Application") opens a new window. > > > But I'd like to be able to find, of windows already open, a specific

Re: VNC capture in python

2008-07-07 Thread Mike Driscoll
On Jul 6, 11:12 pm, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I was wondering if I can do a capture of a VNC screen in python. Kinda > like this http://search.cpan.org/~lbrocard/Net-VNC-0.35/lib/Net/VNC.pm > but without opening a VNC window or doing a screen capture. > Thanks for any suggestion

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
On Jul 9, 2:19 am, |e0 <[EMAIL PROTECTED]> wrote: > So, i can't use wmi module on linux? > > On Wed, Jul 9, 2008 at 9:14 AM, Lamonte Harris <[EMAIL PROTECTED]> wrote: > > I think the win32 module is only for windows. WMI is a Windows thing. It stands for "Windows Management Instrumentation". So it

Re: wxPython code giving strange errors.

2008-07-13 Thread Mike Driscoll
On Jul 13, 10:18 am, teh_sAbEr <[EMAIL PROTECTED]> wrote: > I'm busy trying to learn wxPython, and i'm trying to run the following > piece of code (its from the wxPyWiki tutorial): > > import wx > > ID_ABOUT = 101 > ID_EXIT = 110 > > class MainWindow(wx.Frame): >     def __init__(self,parent,id,tit

Re: a module.pth question

2008-07-14 Thread Mike Driscoll
On Jul 14, 6:26 am, oyster <[EMAIL PROTECTED]> wrote: > My py24 is installed in h:\python24 > I installed pyglet(http://pyglet.org/) in > H:\pure_pylib\Multimedia\pyglet-1.0\, if I do > [code]>>> import sys > >>> sys.path.append(r'H:\pure_pylib\Multimedia\pyglet-1.0') > >>> import pyglet > > [/code

Re: Using Python To Launch Python

2008-07-14 Thread Mike Driscoll
On Jul 14, 4:01 pm, aha <[EMAIL PROTECTED]> wrote: > Hello All, >   I have a situation where I can count on a Python installation being > available on a system, but I can't count on it being a version of > Python needed by my application.  Since my application has it's own > version of Python insta

Re: how can i save my command prompt screen?

2008-07-16 Thread Mike Driscoll
On Jul 16, 12:28 pm, norseman <[EMAIL PROTECTED]> wrote: > Ty hensons wrote: > >  > how can i save my command prompt screen? > > == > > That by itself leaves lots of questions.  Taken literally to be the > "box" then: > > In Microsoft use the "Print Scree

Re: py2exe issues with pictures and icons

2008-07-16 Thread Mike Driscoll
On Jul 16, 1:37 pm, Alexnb <[EMAIL PROTECTED]> wrote: > Hello > > I am sure most of you are familiar with py2exe. I am having a bit of a > problem. See the program has a few pictures involved and the .ico it uses > for the windows. However, the pictures are stored in the same directory as > the sou

Re: New to Python - Accessing Lotus Notes

2008-07-16 Thread Mike Driscoll
On Jul 16, 2:11 pm, KDawg44 <[EMAIL PROTECTED]> wrote: > Hi, > > We have a Lotus Notes Database that tracks time spent on projects. > What I would like to do is develop a Time Tracker in Python that > communicates with the server.  This would pull projects in and allow a > use to start a timer as h

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
On Jul 18, 2:35 pm, KDawg44 <[EMAIL PROTECTED]> wrote: > Hi, > > I am very new to Python but find it very interesting (from what I know > of it) and am considering writing an application.  However, I have a > question regarding distribution of the app once it is done.  Is there > a way to package e

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

2008-07-18 Thread Mike Driscoll
On Jul 18, 3:26 pm, Levi Campbell <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to write a program for a friend of mine who uses > windows but I use GNU/Linux. I know you can use mingw and link to the > python dll, but is there a way to create a win32 service under Linux? Technically, you can probab

Re: Raw Strings (I Think)

2008-07-23 Thread Mike Driscoll
On Jul 24, 10:02 am, "Lanny" <[EMAIL PROTECTED]> wrote: > I've used glob.glob to get a list of files in a directory > and now I want to use os.system to execute one of > those files, the problem is that python automatically > puts a escape charater infront of the back slashes > so the os.system get

Re: need thumbnail from video

2008-07-23 Thread Mike Driscoll
On Jul 22, 8:54 am, John Fabiani <[EMAIL PROTECTED]> wrote: > Hi, > I need a py tool that will provide a thumbnail (bmp?) from a video (avi, > wmv) that will be cross platform (linux, windows).  Research has provided > pymedia for Linux but I haven't found anything for windows.  Hopefully, > someon

Re: Questions on 64 bit versions of Python

2008-07-25 Thread Mike Driscoll
On Jul 25, 5:52 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > M.-A. Lemburg wrote: > >> 4. Is there a stable version of IronPython compiled under a 64 bit > >> version of .NET? Anyone have experience with such a beast? > > > Can't comment on that one. > > Should that matter?  Isn't IronPython pure

Re: Calling external program from within python

2008-07-25 Thread Mike Driscoll
On Jul 25, 7:56 am, Emmanouil Angelakis <[EMAIL PROTECTED]> wrote: > Hi, > > I am tryiong to do something obviously trivial such as: > I have a c program called "tsys2list" that when it is ran it asks the user to > give the value of "tcal" which is a variable. I want to call the  "tsys2list" > fr

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
On Jul 26, 2:33 pm, [EMAIL PROTECTED] wrote: > Windows XP SP3 > Python 2.5 > wx.version() = '2.8.1.1 (msw-unicode)' > -- > I have written the following *simplest* implementation of wx.timer I > can think of.  No workie.   I want an exception, a print statement, or > something. > > The wxpython

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
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 python script to upload files, > but not for downloading. > > Anyone has a hint or a solution ? > > thanks, > Stef Mie

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

Re: working pylint anyone?

2008-07-31 Thread Mike Driscoll
On Jul 31, 4:29 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Hi, > > until yesterday I was a happy user of pylint. Then I upgraded to ubuntu > hardy heron - and the trouble began. > > The packaged version of pylint (0.13.2) fails with this error (last line): > > logilab.common.configuration.

Re: Newbie Python questions

2008-07-31 Thread Mike Driscoll
On Jul 29, 12:28 pm, LessPaul <[EMAIL PROTECTED]> wrote: > I recently discovered Python and see it as a great language to use for > personal projects (and more). I made my living for over a decade as a > coder in C, C++, ADA, Fortran, and Assembly before moving to systems > engineering. > > I'm now

Re: Hobbyist - Python vs. other languages

2008-07-31 Thread Mike Driscoll
On Jul 31, 1:32 pm, fprintf <[EMAIL PROTECTED]> wrote: > I have been playing with computers since I first learned to program > moving shapes on an Atari 800XL in BASIC. After many years of dabbling > in programming languages as a hobbyist (I am not a computer scientist > or other IT professional),

Re: Object Manipulation and Frames

2008-08-04 Thread Mike Driscoll
> Thanks alot Mr.Driscoll, that snippet of code helped me alot..but i > was of the idea that the application should be cyclic in nature, that > it hould not exit even on failure to authenticate the user.My idea is > that once logged in i should be able to bring back the ligin screen on > full scr

Re: More like a shell command.

2008-08-06 Thread Mike Driscoll
to use some metaprogramming techniques, like decorators, to achieve this, although I'm not thinking of anything clever at the moment. --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Run program from within Python

2008-08-06 Thread Mike Driscoll
On Aug 6, 2:42 pm, frankrentef <[EMAIL PROTECTED]> wrote: > Greetings all... > > Newbie to Python... need help with opening a file from within > Python... see the following code. > > import popen2 > stdout, stdin = popen2.popen2('c:\test\OpenProgram.exe 1 1') > keygen = stdout.read() > print "The k

Re: Parsing of a file

2008-08-06 Thread Mike Driscoll
On Aug 6, 1:55 pm, Tommy Grav <[EMAIL PROTECTED]> wrote: > I have a file with the format > > Field f29227: Ra=20:23:46.54 Dec=+67:30:00.0 MJD=53370.06797690 Frames   > 5 Set 1 > Field f31448: Ra=20:24:58.13 Dec=+79:39:43.9 MJD=53370.06811620 Frames   > 5 Set 2 > Field f31226: Ra=20:24:45.50 Dec=+78

Re: Books to begin learning Python

2008-08-06 Thread Mike Driscoll
On Aug 6, 2:56 pm, Edward Cormier <[EMAIL PROTECTED]> wrote: > Which computer books are the best to begin learning Python 2.5 with? > I've heard that Learning Python 3rd Edition is a good choice - can > anyone give any more advice on this? > > Thanks. There's lots of good books to read, including

Re: Parsing of a file

2008-08-07 Thread Mike Driscoll
On Aug 6, 4:06 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 7, 6:02 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Aug 6, 1:55 pm, Tommy Grav <[EMAIL PROTECTED]> wrote: > > > > I have a file with the format > > > > Fie

Re: os.system question

2008-08-07 Thread Mike Driscoll
On Aug 6, 8:07 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: >  >>> import os >  >>> foo = os.system('whoami') > kevin >  >>> print foo > 0 >  >>> > > The standard output of the system command 'whoami' is my login name. Yet > the value of the 'foo' object is '0,' not 'kevin.' How can I get the > valu

<    1   2   3   4   5   6   >