Re: Books to begin learning Python

2008-08-07 Thread Mike Driscoll
On Aug 7, 1:12 pm, Beliavsky <[EMAIL PROTECTED]> wrote: > On Aug 6, 4:08 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > On Aug 6, 2:56 pm, Edward Cormier <[EMAIL PROTECTED]> wrote: > > > > Which computer books are the best to begin learning Pytho

Re: wxPython pop--up ("could not retrieve information...")

2008-08-07 Thread Mike Driscoll
On Aug 7, 1:36 pm, mistersulu <[EMAIL PROTECTED]> wrote: > Hi all: > > I'm using a wx.ListView object with a multi-threaded wxPython app. > The list is dynamically generated and accessed across two or more > threads.  In spite of the fact that I have checks to see if an item at > a given index is i

Re: Threading and wx.....

2008-08-08 Thread Mike Driscoll
On Aug 8, 2:19 am, SamG <[EMAIL PROTECTED]> wrote: > On Aug 8, 12:01 pm, SamG <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > Im trying my hand at threading with wx applications. I have written > > the following code... > > > import wx > > from threading import Thread, Lock > > > class createWindow(

Re: small issue with Idle

2008-08-08 Thread Mike Driscoll
On Aug 8, 9:41 am, v4vijayakumar <[EMAIL PROTECTED]> wrote: > When you press 'home' button cursor goes before >>> prompt. This is > little uncomfortable. > > I am using Idle 1.2.2. (python 2.5.2.) There's a free version of Wing IDE that has an IDLE-like interface that doesn't have this issue...or

Re: wxPython IDE question

2008-08-09 Thread Mike Driscoll
On Sat, Aug 9, 2008 at 9:13 AM, Samuel Morhaim <[EMAIL PROTECTED]> wrote: > Hi, I know this has been asked many times, but I can't seem to find a real > good IDE for wxPython. > > I look at an application such as testuff.com and I am sure it was written > using wxPython, however the GUI is so clean

Re: run a .py script with cmd line args

2008-08-12 Thread Mike Driscoll
On Aug 12, 2:20 pm, r <[EMAIL PROTECTED]> wrote: > i have a python text editor program(script) that i would like to run > when a user clicks on .txt files. > how do i run my script from windows, > and send the filename to my script, so that my script can do: > > if len(sys.argv) > 1: >     try: >  

Re: win32service and Python

2008-08-13 Thread Mike Driscoll
On Aug 13, 12:31 pm, David <[EMAIL PROTECTED]> wrote: > I am collecting informations about win32 services for Python but, except for > few basic examples about Mark Hammond's win32serviceutil, I found nothing > useful. > > Any link is welcome. > > Thank you. > David This doesn't have one yet, but

Re: os.system question

2008-08-13 Thread Mike Driscoll
On Aug 13, 1:38 am, Asun Friere <[EMAIL PROTECTED]> wrote: > On Aug 13, 8:58 am, Steven D'Aprano <[EMAIL PROTECTED] > > cybersource.com.au> wrote: > > On Mon, 11 Aug 2008 19:28:13 -0700, Asun Friere wrote: > > > > but if I was in a hurry to find out who I was I would be tempted still > > > to use t

Re: os.system question

2008-08-13 Thread Mike Driscoll
On Aug 13, 3:03 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > >> I note 3.0 runs os.popen without complaint (and had thought to mention > >> that in my previous).  Right now I'm wondering whether I should > >> install the beta 2.6 to

Re: wxPython; adding a grid to a panel

2008-03-31 Thread Mike Driscoll
Moynes, On Mar 31, 5:01 am, "Moynes James" <[EMAIL PROTECTED]> wrote: > I am a Python newbie hoping for some help with wxPython. > > I am trying to build a frame which will display a wx.grid and a number > of other widgets (text controls, static text and buttons). In all the > example scripts I ha

Re: wxPython; adding a grid to a panel

2008-03-31 Thread Mike Driscoll
On Mar 31, 8:33 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > On Mon, 31 Mar 2008 11:01:19 +0100, "Moynes James" > > <[EMAIL PROTECTED]> wrote: > >In the script below I have added two panels to a frame. I want to > >display the grid in one panel (and later on add other widgets to the > >other pan

Re: wxPython listctrl

2008-03-31 Thread Mike Driscoll
On Mar 29, 4:27 pm, Gif <[EMAIL PROTECTED]> wrote: > I was wondering if there is a way to extract an icon from a file > (executable) and then add it in a listctrl. I also 'd like to know if > i can shorten the icon in order to fit in a listctrl item. > I've managed to get the icon from an icon file

Re: Automatically fill in forms on line

2008-03-31 Thread Mike Driscoll
On Mar 31, 11:50 am, "Jackie Wang" <[EMAIL PROTECTED]> wrote: > Dear all, > > I want to automatically complete the following task: > > 1. Go tohttp://www.ffiec.gov/Geocode/default.aspx; > 2. Fill in an address in the form "Street Address:" . e.g. "1316 State > Highway 102"; > 3. Fill in a ZIPcode i

Re: python scripts to standalone executable

2008-03-31 Thread Mike Driscoll
On Mar 31, 12:24 pm, Amit Gupta <[EMAIL PROTECTED]> wrote: > Hi > > I am looking for a some tool that can convert python scripts to > executable on Linux. > > I found freeeze.py as the only option so far. Couple of queries on > freeze: > > 1. Have anyone used the freeze utility and any experiences

Re: python scripts to standalone executable

2008-03-31 Thread Mike Driscoll
On Mar 31, 4:53 pm, Amit Gupta <[EMAIL PROTECTED]> wrote: > On Mar 31, 1:52 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > What about creating a setup.py and using the distutils command to > > build rpms or tarballs? > > >http://docs.python.org

Re: Wxpython. Is it possible to change layout in a running application? Selfmade listbox

2008-04-07 Thread Mike Driscoll
On Apr 7, 6:50 am, Soren <[EMAIL PROTECTED]> wrote: > Hi, > > Id like to make my own special listbox.. I want to able (at the push > of a button) to add another item to my special listbox... each item is > a panel with a label, some buttons and maybe a text control. > > I've tried adding a new pane

Re: List open files

2008-04-08 Thread Mike Driscoll
On Apr 8, 10:16 am, "Bruno GUERPILLON" <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like, in a WIN32 environment, list all open files. > Anyone got a clue how to do this ? > > Regards, > > Bruno. XP comes with a utility called OpenFiles.exe which supposedly gives this functionality. You can use Python

Re: Problem with smtplib and py2exe

2008-04-08 Thread Mike Driscoll
On Apr 8, 10:17 am, Kevin <[EMAIL PROTECTED]> wrote: > Thanks, Terry, you pointed me in the right direction with the > reference to the "DEBUG". > > I dug out my "Learning Python" book, to read up on the debugger, and > one of the things I came across was a section on IDLE's debugger. It > said ess

Re: List open files

2008-04-08 Thread Mike Driscoll
On Apr 8, 10:56 am, "Bruno GUERPILLON" <[EMAIL PROTECTED]> wrote: > "Mike Driscoll" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > > On Apr 8, 10:16 am, "Bruno GUERPILLON" <[EMAIL PROTECTED]> wrote:

Re: set file permission on windows

2008-04-08 Thread Mike Driscoll
On Apr 8, 12:03 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: > hi, I need to set file permissions on some directory trees in windows using > Python. > > When I click on properties for a file and select the 'Security' tab, I see a > list of known 'Group or user names' with permissions for each entry

Re: set file permission on windows

2008-04-08 Thread Mike Driscoll
On Apr 8, 1:19 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: > "Mike Driscoll" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > On Apr 8, 12:03 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: > &g

Re: new user needs help!

2008-04-08 Thread Mike Driscoll
On Apr 8, 2:55 pm, drjekil <[EMAIL PROTECTED]> wrote: > I am totally new in biopython and its my first program.so may be i am asking > stupid question. > I am working with a text filelooks like this: > #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD > 1lghB A i 79.8 H H -24.58 > 1lghB V i 79.6 H H -22.06

Re: new user needs help!

2008-04-08 Thread Mike Driscoll
On Apr 8, 3:38 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > drjekil wrote: > > I am totally new in biopython and its my first program.so may be i am asking > > stupid question. > > New? Most questions are sensible. > > Let's suppose that the four lines you give below are stored in a text > file ca

Re: Running a python code periodically

2008-04-08 Thread Mike Driscoll
On Apr 8, 3:01 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > paul wrote: > > Maryam Saeedi schrieb: > >> Hi, > > >> I was wondering if you know how can I run a python code once every five > >> minutes for a period of time either using python or some other program > >> like > >> a bash script. > > >

Re: I am worried about Python 3

2008-04-09 Thread Mike Driscoll
On Apr 9, 7:04 am, jmDesktop <[EMAIL PROTECTED]> wrote: > I am a new Python programmer. I have always desired to learn Python, > but have never had the opportunity. Recently this has changed, and I > have an opportunity to get away from the .NET framework. I found > Django (and other web framewo

Re: Displaying vtk files in a wxPython window

2008-04-09 Thread Mike Driscoll
On Apr 9, 1:38 pm, rocksportrocker <[EMAIL PROTECTED]> wrote: > Hi, > > I want to visualize some vtk-files within a wxPython Window. Google > did not help me > very much, I only found some tools for Tk, what is no solution for me. > > I'm sure I am not the first one who asks this question > > A

Re: Control process execution

2008-04-09 Thread Mike Driscoll
On Apr 9, 3:11 pm, Noah <[EMAIL PROTECTED]> wrote: > On Apr 6, 5:30 am, Wesley Mesquita <[EMAIL PROTECTED]> wrote: > > > I am trying to create a test environment to a couple C applications > > (simple UDP and TCP server/clients), so I want to write this in python > > and I m looking for ways to do

Re: How is GUI programming in Python?

2008-04-10 Thread Mike Driscoll
On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > Paul Rubin wrote: > > Chris Stewart <[EMAIL PROTECTED]> writes: > >> I've always had an interest in Python and would like to dabble in it > >> further. I've worked on a few ver

Re: win-shortcuts, file associates and command-line parameters ?

2008-04-10 Thread Mike Driscoll
On Apr 10, 2:03 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > under windows I tried to make a shortcut to a py -file, to run a program. > So making a shortcut like this works perfect: > D:\PyLab_Works.py > > But the problem is that I need to give some commandline parameters to > the py

Re: Cannot start RPy - need win32api

2008-04-11 Thread Mike Driscoll
On Apr 11, 11:47 am, [EMAIL PROTECTED] wrote: > I'm running Python 2.5.2 on Windows XP and need to interface with R, > so I downloaded the R 2.6.2 statistical package and installed it, and > did the same for RPy 1.02 (i made sure I got the version for Python > 2.5 and R 2.62.). When I go to the Pyt

Re: Profiling programs/scripts?

2008-04-11 Thread Mike Driscoll
On Apr 11, 1:49 pm, [EMAIL PROTECTED] wrote: > how do i profile a program? i found out that there are some profilers > included in the standard library but couldnt really figure out how to > access/use them Are you talking about using PyChecker or nose or what? In other words, do you want to check

Re: Windows - window status (Running vs Not Responding)

2008-04-11 Thread Mike Driscoll
On Apr 11, 2:10 pm, rdahlstrom <[EMAIL PROTECTED]> wrote: > On Apr 11, 1:45 pm, rdahlstrom <[EMAIL PROTECTED]> wrote: > > > Does anyone know how to determine the window status (Running or Not > > Responding)? I've tried various methods with no success... > > > This would be on a variety of Windows

Re: Windows - window status (Running vs Not Responding)

2008-04-11 Thread Mike Driscoll
On Apr 11, 3:22 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > >http://www.informit.com/articles/article.aspx?p=19489&seqNum=4 > > > If you're better than I am, you can probably translate this to the > > Python equivalent. Zenoss a

Re: win-shortcuts, file associates and command-line parameters ?

2008-04-11 Thread Mike Driscoll
On Apr 11, 4:40 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Gabriel Genellina wrote: > > En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki <[EMAIL PROTECTED]> > > escribió: > > >> under windows I tried to make a shortcut to a py -file, to run a program. > >> So making a shortcut like this works pe

Re: Python GUI programming and boa or better ?

2008-04-14 Thread Mike Driscoll
On Apr 14, 8:20 am, bvidinli <[EMAIL PROTECTED]> wrote: > I program in python for about 2-3 monthos. > I just started/tested gui programming with many tools. > i tested boa last, it is the closest tool to delphi in tui tools that i used. > > I managed to play with it a bit. > > If you have any othe

Re: hw to program on python

2008-04-15 Thread Mike Driscoll
On Apr 15, 7:47 am, ashish <[EMAIL PROTECTED]> wrote: > hi , > python experts i want some help from u people just mail me how to > write scripts for web applications (like form coding for login page, > etc). > > i m waiting for ur reply by > have a nice day! I suggest you start by going to the

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread Mike Driscoll
On Apr 15, 1:51 pm, Erich <[EMAIL PROTECTED]> wrote: > Hello all, > > Today I found myself once again defining two functions that I use all > the time: nsplit and iterable. These little helper functions of mine > get used all the time when I work. Im sick of having to define them > (but am very go

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread Mike Driscoll
On Apr 15, 1:51 pm, Erich <[EMAIL PROTECTED]> wrote: > Hello all, > > Today I found myself once again defining two functions that I use all > the time: nsplit and iterable. These little helper functions of mine > get used all the time when I work. Im sick of having to define them > (but am very go

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread Mike Driscoll
On Apr 15, 3:15 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > My suggestion would just be to create your own utils.py module > that holds your commonly used tools and re-uses them > > -tkc Well, I almost said that, but I was trying to find some "battery" included that he could use since the OP s

Re: Learning Tkinter

2008-04-16 Thread Mike Driscoll
On Apr 16, 7:46 am, "Doran, Harold" <[EMAIL PROTECTED]> wrote: > I am currently reading An Intro to Tkinter (1999) by F. Lundh. This doc > was published in 1999 and I wonder if there is a more recent version. > I've googled a bit and this version is the one I keep finding. I like > how this documen

Re: Finally had to plonk google gorups.

2008-04-16 Thread Mike Driscoll
On Apr 16, 9:19 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > This morning almost half of c.l.p was spam. In order to try to > not tar both the benign google group users and the malignant > ones with the same brush, I've been trying to kill usenet spam > with subject patterns. But that's not a b

Re: Finally had to plonk google gorups.

2008-04-16 Thread Mike Driscoll
On Apr 16, 10:09 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On Apr 16, 9:19 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> This morning almost half of c.l.p was spam. In order to try to > >> not tar both the benign google group

Re: Splitting MainWindow Class over several modules.

2008-04-16 Thread Mike Driscoll
On Apr 16, 10:47 am, Iain King <[EMAIL PROTECTED]> wrote: > Until recently almost all my python programs were held 1 file for 1 > program. This had grown unwieldy for one of my projects, so i decided > to refactor it, and ended up with something like this: > > --- > > import wx > > import options

Re: Finally had to plonk google gorups.

2008-04-16 Thread Mike Driscoll
On Apr 16, 12:40 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Wed, 16 Apr 2008 08:23:50 -0700 (PDT) > > Mike Driscoll <[EMAIL PROTECTED]> wrote: > > My workplace doesn't offer NNTP, so there is no good way to browse > > c.l.py here

Re: Finally had to plonk google gorups.

2008-04-16 Thread Mike Driscoll
On Apr 16, 11:06 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On Apr 16, 10:09 am, Steve Holden <[EMAIL PROTECTED]> wrote: > >> Mike Driscoll wrote: > >>> On Apr 16, 9:19 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > &

Re: Python 2.5 adoption

2008-04-18 Thread Mike Driscoll
On Apr 18, 1:08 pm, Joseph Turian <[EMAIL PROTECTED]> wrote: > How widely adopted is python 2.5? > > We are doing some development, and have a choice to make: > a) Use all the 2.5 features we want. > b) Maintain backwards compatability with 2.4. > > So I guess the question is, does anyone have a se

Re: Easiest way to get started with WebApps?

2008-04-18 Thread Mike Driscoll
On Apr 18, 2:06 pm, [EMAIL PROTECTED] wrote: > which is the easiest module to use to just get started with webapps > quicklya nd starting getting things up and running, not advanced stuff > just basic. cherrypy is also good for quick and dirty webapps without a lot of bling. Mike -- http://mail.

Re: Error with win32com client on windows 2003 server

2008-04-18 Thread Mike Driscoll
On Apr 18, 3:12 pm, SPJ <[EMAIL PROTECTED]> wrote: > Sorry, forgot to mention Subject in my earlier post, hence reposting. > > I am writing a script which need's to convert an excel file to csv (text) > format. For that I am using the following code: > > excel = win32com.client.Di

Re: Finding the selected file in Windows Explorer

2008-04-21 Thread Mike Driscoll
On Apr 21, 9:44 am, [EMAIL PROTECTED] wrote: > Hi! > > I need to find the selected file(s) in a Windows Explorer window from > another program (I'd look at the window that last had focus). I found > something in the following page that should do the trick: > > http://blogs.msdn.com/oldnewthing/arch

Re: Problem setting cookie in Internet Explorer

2008-04-21 Thread Mike Driscoll
On Apr 21, 10:13 am, sophie_newbie <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the python to set a cookie when a user logs in. Thing is it > doesn't seem to be setting properly in Internet Explorer. It works > grand in Firefox. Its basically: > > c = Cookie.SimpleCookie() > > c['username'] = una

Re: list manipulation

2008-04-22 Thread Mike Driscoll
On Apr 22, 3:55 pm, DataSmash <[EMAIL PROTECTED]> wrote: > Hello, > > I have a list that looks like this: > roadList = ["Motorways","Local","Arterial"] > > I want to apply some code so that the output looks like this: > "Motorways;Local;Arterial" > > ...in other words, I want each item in the list

Re: about python

2008-04-22 Thread Mike Driscoll
[EMAIL PROTECTED] wrote: How can python execute in browser? Mukul -- http://mail.python.org/mailman/listinfo/python-list Check out IronPython, which you can use with Silverlight or Mono. Or you could look at any of the cool Python Web Frameworks, such as TurboGears, Pylons, CherryPy, or Dj

Re: list manipulation

2008-04-22 Thread Mike Driscoll
John Machin wrote: Mike Driscoll wrote: Well you could always do something like this: output = ';'.join(roadList) Which will put single quotes on the ends. No, it doesn't. You are conflating foo and repr(foo). I suppose if you want to be silly, you could do this:

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread Mike Driscoll
On Apr 23, 11:47 am, John Nagle <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > Ken, > > > On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald > > <[EMAIL PROTECTED]> wrote: > >> Sadly. > > >>  Thanks, > >>  Ken > >&g

Re: Python development tools

2008-04-23 Thread Mike Driscoll
On Apr 23, 12:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Are there any completely free developent tools for python scripts like > IDLE. I have used IDLE , but I want to try out others also. I saw > stuff like PyCrust, but I don't see that it can run the script as > well. > Thanks, > >

Re: Tkinter scrollbar and checkbox

2008-04-24 Thread Mike Driscoll
On Apr 24, 7:11 am, goldtech <[EMAIL PROTECTED]> wrote: > Hi, > > I'm stumped on how to have a scrollbar with a long list of checkboxes. > Given code like: > > from Tkinter import * > root = Tk() > states = [] > for i in range(150): >     var = IntVar() >     chk = Checkbutton(root, text=str(i), va

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-24 Thread Mike Driscoll
On Apr 23, 4:27 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Tim Golden wrote: > > John Nagle wrote: > >> Mike Driscoll wrote: > >>> Ken, > > >>> On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald > >>> <[EMAIL PROTECTED]> wrote

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-24 Thread Mike Driscoll
On Apr 24, 10:15 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 24 Apr, 16:33, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > This is a legitimate issue and one I don't know how to solve. It would > > be nice to have some kind of verification

Re: Installer

2008-04-24 Thread Mike Driscoll
On Apr 24, 11:39 am, Chris <[EMAIL PROTECTED]> wrote: > Hey all, > > I've created a python program that relies on pysqlite, wxpython, and > matplotlib. Is there any way of creating an installer that will > install all these modules, python 2.5 and my program? > > Thanks. Chris, If all you're doin

Re: Loading associated files

2008-04-24 Thread Mike Driscoll
On Apr 24, 10:14 am, [EMAIL PROTECTED] wrote: > I am trying to make a a simple databasing GUI interface and and have > created a module to deal with parsing the data from a file and a GUI > based program that displays this data using PyQt4, i know how to > register files in the system registry usin

Re: wxpython and IEHtmlWindow, Focus Problem.

2008-04-25 Thread Mike Driscoll
On Apr 24, 11:48 pm, Farsheed Ashouri <[EMAIL PROTECTED]> wrote: > Hi everyone. I create a little browser with wxpython and IEHtmlWindow. > But I have a little problem here. > When I press enter in the html page, The focus goes to another panel. > Why this happens? > I want to load a html page and

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-25 Thread Mike Driscoll
On Apr 24, 1:34 pm, Paul Rubin wrote: > Paul Boddie <[EMAIL PROTECTED]> writes: > > simple Python-only modules, all you'd really need to do to prove the > > concept is to develop the client-side Windows software (eg. apt-get > > for Windows) which downloads package lists,

Re: Environment Variables

2008-04-25 Thread Mike Driscoll
On Apr 25, 8:07 am, Krishna <[EMAIL PROTECTED]> wrote: > Environment variable set up is the most confusing part for me all the > time. Please help me with the following questions: > > When I install python in a new system, I will go to environment > variables (system variables) and set "path" point

Re: Environment Variables

2008-04-25 Thread Mike Driscoll
On Apr 25, 8:26 am, Krishna <[EMAIL PROTECTED]> wrote: > On Apr 25, 9:17 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Apr 25, 8:07 am, Krishna <[EMAIL PROTECTED]> wrote: > > > > Environment variable set up is the most confusing part fo

Re: display monochromatic images wxPython

2008-04-25 Thread Mike Driscoll
On Apr 25, 3:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Dear All, > I want to write a GUI program with wxPython displaying an image. But > the image I have is monochromatic. When I retrieve the data from the > image I end up with a list of integer. Starting from a list of integer > and

Re: What to download when updating?

2008-04-26 Thread Mike Driscoll
On Apr 26, 4:57 pm, Gilles Ganault <[EMAIL PROTECTED]> wrote: > Hello > >         Out of curiosity, if I recompile a Python (wxPython) app with > py2exe, can I have customers just download the latest .exe, or are > there dependencies that require downloading the whole thing again? > > FWIW, here's

Re: Desktop notifications on Windows

2008-04-26 Thread Mike Driscoll
On Apr 26, 4:08 pm, WindPower <[EMAIL PROTECTED]> wrote: > On Apr 26, 4:52 am, David <[EMAIL PROTECTED]> wrote: > > > On Sat, Apr 26, 2008 at 4:41 AM,  <[EMAIL PROTECTED]> wrote: > > > I'm looking for a way to implement desktop notifications (much like an > > >  instant messaging program or a mail

Re: Installed python 2.5 over 2.4 and lost installed packages

2008-04-27 Thread Mike Driscoll
On Apr 27, 8:15 am, [EMAIL PROTECTED] wrote: > Hi all, > > I recently updated os x from python 2.4 to 2.5 (from python.org) and > in doing so I lost my old python path entries. Python 2.4 was > installed using fink.  Now when I do: > > import sys > print sys.path > > my old site-packages directory

Re: Automating IE 6.0

2008-04-28 Thread Mike Driscoll
Michael Harris wrote: I tried to use the sample code to print a webpage via ie and I get the following error: Traceback (most recent call last): File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__d

Re: SSL through python. possible ?

2008-04-29 Thread Mike Driscoll
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 ? > > Thanks. Did you try Google? Here's a few links that look like possibilities: http://sandbox.rulemaker.net/ngps/m2/ http://pypgsql.sourceforge.net/misc/python-ss

Re: py2exe Icon Resources

2008-04-29 Thread Mike Driscoll
On Apr 29, 3:24 pm, [EMAIL PROTECTED] wrote: > I have created an app using python and then converting it to an exe > using py2exe, and have the following code: > > "icon_resources": [(1, "appFavicon.ico"), (2, "dataFavicon.ico")] > > in my py2exe setup file, the appFavicon works fine and it sets th

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

2008-04-30 Thread Mike Driscoll
blaine wrote: > The wxPython group is a bit stale compared to this group, so I'll give > it a shot :) > What does that mean? The wxPython group is almost always very quick to respond with relevant answers. As to your question, I think Peter is correct. Your wx.py and wx.pyc files are masking th

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: PyGame, window is not closing, tut not helping

2008-05-01 Thread Mike Driscoll
On May 1, 10:55 am, globalrev <[EMAIL PROTECTED]> wrote: > im doing this > :http://www.learningpython.com/2006/03/12/creating-a-game-in-python-us... > > and when closing the program the window stays up and doesnt respond. i > tried adding this:http://www.pygame.org/wiki/FrequentlyAskedQuestions >

Re: send gpg encrypted emails (properly mime formatted)

2008-05-01 Thread Mike Driscoll
On May 1, 12:57 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > Any ideas on python packages that could help with sending gpg encrypted > (properly mime formatted) emails? > > My idea is to forward all my emails to a remote imap server, but gpg encrypt > them to myself in the process. Take a look at

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

2008-05-01 Thread Mike Driscoll
On May 1, 4:25 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > I have been to the main python site, but am still confused.  I have > been using .net, so it may be obvious how to do this to everyone > else.  I am aware there are various frameworks (Django, Pylons, etc.), > but I would like to know how to

Re: Python documentation

2008-05-02 Thread Mike Driscoll
On May 2, 4:34 am, [EMAIL PROTECTED] wrote: > Hello, > > I have been learning python for some time using the dive into python > book. I am interested to know if anyone can recommend a book which > covers more advanced topics like threading and potentially GUI style > coding. > > Regards, > > Ronald

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

2008-05-02 Thread Mike Driscoll
On May 2, 12:03 pm, globalrev <[EMAIL PROTECTED]> wrote: > print pygame.K_a displays 97 btw. what does that mean? i though it > would return true or false or 0 or 1. That's probably the key code value. Or the ASCII representation for the key. You'd have to read the pygame docs to really know. Mik

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: pil:effbot and pythonware offline

2008-05-02 Thread Mike Driscoll
On May 1, 5:15 pm, spdegabrielle <[EMAIL PROTECTED]> wrote: > Sorry, I'm new to python and was trying to get imageTK; > this led me to try find PIL, but pythonware and effbot both seem to be > offline. > > I can't find any mention of an outage on python.org, this newsgroup, > or the planet-blogs. >

Re: IPv6 and Python

2008-05-02 Thread Mike Driscoll
On May 2, 2:15 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > I'm not sure if this is a question about python programming, system > administration or sockets in general... > I have the FTP server in my signature to which I'd want to add IPv6 > support. > My hosting company provides me a commo

Re: Where are Tkinter event.type constants defined?

2008-05-05 Thread Mike Driscoll
On May 4, 7:22 pm, Noah <[EMAIL PROTECTED]> wrote: > I'm trying to match against Event.type for KeyPress and ButtonPress. > Currently I'm using integer constants (2 and 4). Are these constants > defined anywhere? The docs talk about KeyPress and ButtonPress, but I > don't see them in any of the Tki

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

2008-05-05 Thread Mike Driscoll
On May 5, 9:22 am, [EMAIL PROTECTED] wrote: > I'm looking at rewriting some legacy VB applications and am pondering > which of the following techniques to use: > > 1. Browser based GUI with local web server (Browser + > wsgiref.simple_server) (I'm assuming that simple_server is class I want > to bu

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

2008-05-06 Thread Mike Driscoll
On May 6, 8:44 am, jmDesktop <[EMAIL PROTECTED]> wrote: > Studying OOP and noticed that Python does not have Interfaces.  Is > that correct?  Is my schooling for nought on these OOP concepts if I > use Python.  Am I losing something if I don't use the "typical" oop > constructs found in other langu

Re: Scanning through Windows registry...

2008-05-07 Thread Mike Driscoll
On May 7, 4:45 am, Tim Golden <[EMAIL PROTECTED]> wrote: > In a spirit of being helpful... :) > > The code below (which I imagine every Windows programmer writes > sometime in their Python life) mimics the os.walk functionality, yielding > the key, subkeys, and values under a particular starting po

Re: PHP + TinyButStrong Python replacement

2008-05-07 Thread Mike Driscoll
On May 7, 6:12 am, pistacchio <[EMAIL PROTECTED]> wrote: > hi! i'm a php user and a python programmer. i'd love to use python for > my server side needs but i can't seem to find what i'm looking for. for > most of my php work i use mysql and tinyButStrong > (http://www.tinybutstrong.com) which is a

Re: loading folder list from my mailbox in python

2008-05-07 Thread Mike Driscoll
On May 7, 1:15 am, [EMAIL PROTECTED] wrote: > Hey everyone, > I want to print the folder list of my mailbox using python (IMAP4), and > with hierarchy, i.e. it should print all the names of the folders of my > mailbox and the folders within them. > Can anyone please help me with this. Without know

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: What is the purpose of ptyhon in Windows

2008-05-07 Thread Mike Driscoll
On May 7, 9:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi All, > I have no idea why I need to learn a new scripting language, > nothing much to the sytnax, > I need to understand what could be the prupose of another scripting > language > > Cna you please help me with this, > Is there

Re: Python GUIs and custom controls

2008-05-08 Thread Mike Driscoll
On May 8, 4:10 pm, "Joe P. Cool" <[EMAIL PROTECTED]> wrote: > So far I have a little experience with Tkinter and wxPython. I wonder > which of the numerous Python GUI kits would be the best choice for a > multi platform application that makes heavy use of custom controls, 3D > views and the like? T

Re: Pythonwin

2008-05-09 Thread Mike Driscoll
On May 9, 5:30 am, Clive_S <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to use Python with ArcGIS. > > I have installed Python 2.4. I have an icon for IDLE and command line. > I do not see Python PythonWin. > > How do you install or launch pythonwin?? > > Thanks > > Clive I have PythonWin insta

Re: Pythonwin

2008-05-09 Thread Mike Driscoll
On May 9, 9:02 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 09 May 2008 10:40:38 -0300, Clive_S <[EMAIL PROTECTED]> escribió: > > > I downloaded (from Python) and installed python-2.4.4.msi > > > I have python and pythonw.exe in the Python 24 folder (but not in my > > start menu). >

Re: help needed!

2008-05-09 Thread Mike Driscoll
On May 9, 8:54 am, drjekil <[EMAIL PROTECTED]> wrote: > i have a script which will do a specific task for a file in a folder,now i > would like to do the same task  for the all files in that folder(25 > files).how can i do that? > > Thanks in advance. > > -- > View this message in > context:http:/

Re: help needed!

2008-05-09 Thread Mike Driscoll
On May 9, 8:54 am, drjekil <[EMAIL PROTECTED]> wrote: > i have a script which will do a specific task for a file in a folder,now i > would like to do the same task  for the all files in that folder(25 > files).how can i do that? > > Thanks in advance. > > -- > View this message in > context:http:/

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

2008-05-09 Thread Mike Driscoll
On May 9, 9:06 am, "gbin,Zhou" <[EMAIL PROTECTED]> wrote: > Hi,all. >    I see from "http://docs.python.org/tut/node11.html"; that "Name > spaces are created at different moments and have different lifetimes. > The namespace containing the built-in names is created when the Python > interpreter sta

Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
Hi, I am experimenting on creating a GUI wrapper for easy_install and I would like to be able to allow the user the browse PyPI topically. However, I am having some trouble figuring out how to get the information in a topical manner. I can get the list of classifiers easily using urllib2 like so:

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! Mike -- http://mail.python.org/mailman/listinfo/python

Re: wxPython beginners problem

2008-08-15 Thread Mike Driscoll
On Aug 15, 11:31 am, Ivan Reborin <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm new to python, new as newbies get, so please, don't take wrongly > if this seems like a stupid or overly simple question. > > I'm going through examples in a book I have ("Beginning python", by > Hetland Marcus) and I

Re: Eggs and Gems

2008-08-19 Thread Mike Driscoll
On Aug 19, 8:19 am, Hussein B <[EMAIL PROTECTED]> wrote: > Hey, > Are Python eggs and RubyGems do the same thing (of course Gems is for > Ruby and eggs is for Python)? > If yes, is it outstanding as the RubyGems? > Thanks. I've never used Ruby, so I can't say for sure, but I think they're close. R

Re: datetime.datetime.now() in military time

2008-08-19 Thread Mike Driscoll
On Aug 19, 10:42 am, korean_dave <[EMAIL PROTECTED]> wrote: > import datetime > > def main(): >     timenow = datetime.datetime.now() >     print(str(timenow.hour)) > > if __name__ == "__main__": >     main() > > If the time was, say, 2pm, how can I make output of timenow.hour "14" > instead of "2"

<    1   2   3   4   5   6   >