On Aug 28, 8:59 am, geoffbache <[EMAIL PROTECTED]> wrote:
> > Which GUI toolkit are you using? Tkinter, wxPython, pyQt?
>
> Primarily PyGTK, but I was hoping it wouldn't matter. I hope to be
> able
> to start the process as indicated in the original post from within my
> test
> tool and instruct th
On Aug 28, 9:10 am, Jimmy <[EMAIL PROTECTED]> wrote:
> I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
> problem: how can I make my program minimize to the taskbar
> represented as an ico, and when there is some message from network
> coming, it will pop out?
Look at the wxP
On Aug 28, 9:50 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Aug 28, 9:10 am, Jimmy <[EMAIL PROTECTED]> wrote:
>
> > I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
> > problem: how can I make my program minimize to the taskbar
> > represented as an ico, and when t
On Aug 28, 8:20 pm, "Sandipan News" <[EMAIL PROTECTED]> wrote:
> What do I do? Can't do without Python!
> Any experience, advice, hope is welcome.
> Thanks.
> Sandipan
You need to post the error traceback along with some more information
so the community can help.
Mike
--
http://mail.python.org
On Aug 28, 1:13 pm, geoffbache <[EMAIL PROTECTED]> wrote:
> On 28 Aug, 18:18, Larry Bates <[EMAIL PROTECTED]> wrote:
>
>
>
> > geoffbache wrote:
> > > Hi,
>
> > > As part of my efforts to write a test tool that copes with GUIs
> > > nicely, I'm trying to establish how I can start a GUI process on
>
On Aug 29, 6:53 am, Werner <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I try to read (and extract) some "self extracting" zipefiles on a
> Windows system. The standard module zipefile seems not to be able to
> handle this.
>
> >>> fName = r"C:\tmp\mySelfExtratingFile.exe"
> >>> import zipfile
> >>> zipefi
On Aug 29, 8:39 am, Alex <[EMAIL PROTECTED]> wrote:
> Hye,
>
> I was just wondering what is the difference between
>
> >> if my_key in mydict:
> >> ...
>
> and
>
> >> if mydict.has_keys(my_key):
> >> ...
>
> I've search a bit in the python documentation, and the only things I
> found was th
On Aug 29, 9:44 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> <[EMAIL PROTECTED]> wrote:
>
>...
>
> > Weird. Hetland's book, "Beginning Python" states that it's a matter of
> > taste.
>
> If your taste is for more verbose AND slower notation without any
> compensating advantage, sure.
>
> > Ma
On Aug 29, 1:51 pm, Ricardo Aráoz <[EMAIL PROTECTED]> wrote:
> Brian McCann wrote:
> > Hi,
>
> > with the code below I set a variable TEST_HOME to a path and the
> > variable m to a path
> > in my current dir.
> > I have a symbolic link setting m>lib
> > when I run the script I get no errors an
Alan,
On Aug 30, 1:37 pm, Alan Isaac <[EMAIL PROTECTED]> wrote:
> Can someone point me to a simple example
> or better yet tutorial for creating
> a Powerpoint using Python.
>
> Thanks,
> Alan Isaac
You should check our the following for information on using COM
itself:
http://www.oreilly.com/ca
On Aug 30, 11:55 pm, Alan Isaac <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >
>
> OK, creating bulleted lists, or tables,
> or adding pictures is all straightforward.
> How about chart creation (in Ppt 2003)?
> I do not see how to do this with Python.
>
> Thanks,
> Alan
Alan,
You pro
On Aug 31, 7:49 am, codemania <[EMAIL PROTECTED]> wrote:
> Disappointing me extremely, with the "generate python" function within
> Resource Editor, I only get a segment of python code which load
> xrc(xml format) file, rather than real python code in which I could
> append my own code.
>
> Does th
On Aug 31, 9:52 am, sberry <[EMAIL PROTECTED]> wrote:
> I am a Flash developer (also a Python dev) and I use an editor called
> SEPY Actionscript Editor. The latest release version does not support
> Flash CS3, so I downloaded the source from subversion, edited it, and
> recompiled to get a versio
On Aug 31, 3:55 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> On Aug 31, 7:11 pm, gsxg <[EMAIL PROTECTED]> wrote:
>
> > Thanks,
> > The curses library doesn't look to helpful to me.
>
> And yet it is.
>
> --
> Arnaud
Maybe the OP is on Windows. The docs seem to indicate that the curses
module
On Sep 4, 8:42 am, n o s p a m p l e a s e <[EMAIL PROTECTED]>
wrote:
> Suppose I have a batch file called mybatch.bat and I want to run it
> from a python script. How can I call this batch file in python script?
>
> Thanx/NSP
The subprocess module should work.
Mike
--
http://mail.python.org/m
On Sep 4, 3:17 pm, ianaré <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> Is there a way of printing out how a function was called? In other
> words if I do the following:
>
> def someFunction(self):
> self.someOtherFunction(var1, var2)
>
> I would get something like "someOtherFunction: called by:
>
On Sep 5, 11:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have a text source file of about 20.000 lines.>From this file, I like to
> write the first 5 lines to a new file. Close
>
> that file, grab the next 5 lines write these to a new file... grabbing
> 5 lines and creating new files
On Sep 5, 11:57 am, Bjoern Schliessmann wrote:
> [EMAIL PROTECTED] wrote:
> > I would use a counter in a for loop using the readline method to
> > iterate over the 20,000 line file.
>
> file objects are iterables themselves, so there's no need to do that
> by using a method.
Very true! Darn it!
Hi,
I am working on a timesheet application in which I need to to find the
first pay period in a month that is entirely contained in that month
to calculate vacation time. Below are some example date ranges:
December 31, 2006January 13, 2007 # doesn't earn
January 14, 2007January 27,
On Sep 6, 10:57 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > I am working on a timesheet application in which I need to to find the
> > first pay period in a month that is entirely contained in that month
> > to calculate vacation time. Below are some example d
On Sep 6, 12:41 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> > Thanks! I'll try it both ways and see if there's any appreciable
> > difference in speed, although since it will be packaged into an
> > executable, that may not be an issue anyway.
>
> > Mike
>
> I honestly doubt there's any advantage t
On Sep 6, 10:19 am, rave247 rave247 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I' am unable to solve this problem. I've got python program, it is installed
> in standard location. I run this program from some location X (note that I
> just type relative "myscript", leaving operating system to look up s
On Sep 6, 2:39 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>
> > Anyway, your method is probably clearer to read whereas mine
>
> > doesn't require anything to be imported.
>
> I think I've been a SQL & Python programmer for so long that
> I tend to do anything -- and sometimes too much -- to avoid
On Sep 7, 3:10 am, Jimmy <[EMAIL PROTECTED]> wrote:
> Hi, wxPython is cool and easy to use, But I ran into a problem
> recently when I try to write a GUI.
> The thing is I want to periodically update the content of StatixText
> object, so after create them, I pack them into a list...the problem
> c
On Sep 7, 2:47 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> Zentrader wrote:
> > On Sep 6, 7:56 am, [EMAIL PROTECTED] wrote:
> >> December 31, 2006January 13, 2007 # doesn't earn
> >> January 14, 2007January 27, 2007 # does earn
> >> January 28, 2007February 10, 2007 # doesn't
>
On Sep 6, 6:41 pm, Zentrader <[EMAIL PROTECTED]> wrote:
> On Sep 6, 7:56 am, [EMAIL PROTECTED] wrote:
>
> > December 31, 2006January 13, 2007 # doesn't earn
> > January 14, 2007January 27, 2007 # does earn
> > January 28, 2007February 10, 2007 # doesn't
> > February 11, 2007
On Sep 7, 7:03 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> I have an application that will be producing many instances, using them
> for a while, then tossing them away, and I want each one to have a unique
> identifier that won't be re-used for the lifetime of the Python se
Hi,
> Thanks for your help! It seems work!
> Another question: I create a progress bar, and on creation, it will be
> displayed,
> How can I invisualize it when later I no longer need it?
I think this is also a good way to use threads. Take a look at the
wxPython demo for the ProgressDialog code.
On Sep 10, 11:24 pm, madzientist <[EMAIL PROTECTED]> wrote:
> hi,
>
> two quick questions:
>
> a) i am using SPE (latest version) and for some reason, when i type,
> say
>
> if 1==2:
> print "not equal"
> else:
> print "equal"
>
> the else is at the same indentation level as the p
Hi,
Does anyone know if the wxPython mailing list is having issues? I
subscribe to it and haven't seen anything come through since
09/06/2007. I went to ActiveState's archives and the last message
there is from the 7th (http://aspn.activestate.com/ASPN/Mail/Browse/
Threaded/wxPython-users).
Thank
Don,
On Sep 11, 10:54 pm, Don Hanlen <[EMAIL PROTECTED]> wrote:
> I'm writing a simple GUI that:
> ..gets info via telnet protocol (and sends)
> ..gets info via http (and sends)
> ..gets user-info from (currently)
> ...Tkinter Text windoze
> ...Tkinter buttons and such
On Sep 12, 6:54 am, [EMAIL PROTECTED] wrote:
> Could you advise if there exists a simple package, containing function
> that would take geographic coordinates and return information on
> whether this point belongs to land or sea? No great accuracy is needed
> -- I am interested in just major featur
On Sep 12, 8:26 am, stef <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > Does anyone know if the wxPython mailing list is having issues? I
>
> Yes the server has hardware problems,
> Robin Dunn (moderator), is informed about it.
>
> cheers,
> Stef Mientki
And to think, we're al
Charles Fox wrote:
> I've just started playing around with Python, as a possible
> replacement for a mix of C++, Matlab and Lisp. The language looks
> lovely and clean with one huge exception: I do a lot of numerical
> modeling, so I deal with objects (like neurons) described
> mathematically in
On Sep 12, 10:26 am, "hyena" <[EMAIL PROTECTED]> wrote:
> problem is as title, bear me if this too silly or too naive.
>
> I use wx.statictext widget to show some information in GUI, there are some
> numbers in the text to be emphasized in bigger other color. For example, in
> sentence "the travel
On Sep 13, 6:29 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I wrote a small program that works uses wxPython. The same application
> works on Linux and Windows. When I start it from MS Windows, I see this
> error message appearing each time I open a window:
>
> ---
On Sep 13, 6:23 am, OpenPavilion Team <[EMAIL PROTECTED]>
wrote:
> Hello community,
>
> I want to create an editor for a self defined xml markup language. I want to
> use wxpython with wxstyledtextctrl and I have looked around at yellowbrain
> site, but there are no examples. I also watched the sty
On Sep 13, 8:27 am, stef <[EMAIL PROTECTED]> wrote:
> > I highly recommend the wxPython mailing list. Right now it is down
> > (see their website),
>
> its'up again.
That's not what the website says, but I'll take your word for it.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 13, 8:41 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> > See main.py of the Demo, line 1129. img2py is in the following default
> > location:
> > C:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wxPython\tools
>
> > Without seeing how you create the image, it's hard to troubleshoot,
> > but I
python_lover wrote:
> Hi All,
>
> I'm new to python. I installed python 2.5 and IDLE 1.2.1 . I'm able
> to run shell commands.
>
> But I don't know how to execute a python program using this. When I'm
> opeing a py program a seperate IDLE window opeing with program text.
> But I don't know to to
On Sep 13, 9:39 am, python_lover <[EMAIL PROTECTED]> wrote:
> On Sep 13, 7:23 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > python_lover wrote:
> > > Hi All,
>
> > > I'm new to python. I installed python 2.5 and IDLE 1.2.1 . I'm able
> > > to run shell commands.
>
> > > But I don't know how to execute a
On Mar 15, 2:04 pm, William Hudspeth <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am needing to pass an argument to the Popen function of the Subprocess
> module that includes a wildcard in the filename. It seems that Popen is
> not able to expand wildcards, and treats a filename that includes a
> wil
On Feb 28, 3:08 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Feb 27, 3:32 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> The problem I have is that since I import WMI, it takes a long time
> >>> and we have users complaining about it. So
On Mar 15, 2:49 pm, "7stud" <[EMAIL PROTECTED]> wrote:
> I can't get the str() method to work in the following code(the last
> line produces an error):
>
>
> class test:
> """class test"""
> def __init__(self):
> """I am init func!"""
> s
On Mar 16, 12:59 pm, [EMAIL PROTECTED] wrote:
> I have an ordered list e.g. x = [0, 100, 200, 1000], and given any
> positive integer y, I want to determine its appropriate position in
> the list (i.e the point at which I would have to insert it in order to
> keep the list sorted. I can clearly do
On Mar 16, 12:42 pm, [EMAIL PROTECTED] wrote:
> Hello everyone!
> i have the following test code:
> class temp:
> def __init__(self):
> self.hello = "hello world!"
> def printworld(self):
> print(self.hello)
> t = temp()
>
> and i tried to call profile('t.printworld()')
>
>
On Mar 16, 2:32 pm, "Paul McGuire" <[EMAIL PROTECTED]> wrote:
> On Mar 16, 12:59 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > I have an ordered list e.g. x = [0, 100, 200, 1000], and given any
> > positive integer y, I want to determine its appropriate position in
> > the list (i.e the point at which I w
On Mar 16, 3:51 pm, Shane Geiger <[EMAIL PROTECTED]> wrote:
> lines = open('/tmp/foo.py',
> "r").read().splitlines()
>
> previous_line =
> ''
>
> for line in
> lines:
>
> if "foo" in
> line:
>
> print "found foo in the current line. The previous line is: "
> +
> previous_line
>
>
On Mar 19, 11:55 am, Shane Geiger <[EMAIL PROTECTED]> wrote:
> In the unix world, 'fc' would be like diff.
>
> """
> Python example of checksumming files with the MD5 module.
>
> In Python 2.5, the hashlib module would be preferable/more elegant.
> """
>
> import md5
>
> import string, os
> r = lam
On Mar 19, 12:24 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
> I'm curious to know what others think of these two frameworks for
> building wxPython apps.
>
> PythonCard has been around longer, but its development seems to have
> slowed. The last release, 0.8.2, has been out for quite awhile now.
>
On Mar 19, 11:34 am, "Erik Johnson" <[EMAIL PROTECTED]> wrote:
> Sort of two questions here:
>
> The first is about the internal view: are there Python introspection
> functions that can be called such that a running script can keep tabs on how
> much memory is being used?
>
> And the sec
On Mar 19, 1:52 pm, "Sells, Fred" <[EMAIL PROTECTED]> wrote:
> glad to hear it. Those of us who would like to introduce it in reluctant
> schools elsewhere could benefit from a post-semester evaluation, including
> student comments and some sample, running projects.
>
> -Original Message-
On Mar 19, 2:20 pm, Adonis Vargas <[EMAIL PROTECTED]>
wrote:
> I am writing a program that walks a directory full of mp3s reads their
> ID3 data (using Mutagen), this part works perfectly. The problem is I
> write these tags to a CSV file through the CSV module. But when I read
> the file the file
On Mar 19, 2:45 pm, John Nagle <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch wrote:
> > John Nagle schrieb:
>
> >> I'm looking for something that can read .MDB files, the format
> >> Microsoft Access uses, from Python. I need to do this on
> >> Linux, without using Microsoft tools. I just need
On Mar 19, 12:22 am, [EMAIL PROTECTED] wrote:
> On Mon, Mar 19, 2007 at 02:12:39AM -0300, [EMAIL PROTECTED] wrote:
> > If I build a strict with:
>
> Sorry, I meant script.
>
> > import struct
> > print struck.pack ('i', 1)
>
> > it returns a '\n'.
> > What's wrong with it???
> > :(
>
> --
> Andrés
On Mar 20, 7:21 am, "Admir Saric" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i have created an application in pygtk. The application creates files with
> its own file type and extensions and saves them. I would like to extend the
> application to be able to send these files over WLAN. I would use the
> a
On Mar 20, 1:56 am, Tina I <[EMAIL PROTECTED]> wrote:
> cjl wrote:
> > Hi.
>
> > I am trying to screen scrape some stock data from yahoo, so I am
> > trying to use urllib2 to retrieve the html and beautiful soup for the
> > parsing.
>
> > Maybe (most likely) I am doing something wrong, but when I u
On Mar 20, 10:32 am, "Damien Byrne" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to python. I am using the os module to run a command in a
> bashshell. However I need this process to complete before continuing. Is
> there a command that will wait for this process to complete? I am using
> Windo
On Mar 20, 10:33 am, Jonathan Fine <[EMAIL PROTECTED]> wrote:
> Hello
>
> My problem is that I want a Python 2.4 module on
> a server that is running Python 2.3. I definitely
> want to use the 2.4 module, and I don't want to
> require the server to move to Python 2.4.
>
> More exactly, I am using
On Mar 20, 11:08 am, "Alejandro" <[EMAIL PROTECTED]> wrote:
> I have created a class:
>
> class document:
>
> titre = ''
> haveWords = set()
>
> def __init__(self, string):
>
> self.titre = string
>
> #
>
> doc1 = document('doc1')
> doc2 = document('doc2')
>
> doc1.haveW
On Mar 20, 12:25 pm, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> Closing a file can (I believe) raise an exception. Is that documented
> anywhere? I've spent a lot of frustrating time trying to track this down,
> with no luck, which suggests that either my google-foo is weak or that it
> isn't doc
On Mar 20, 12:50 pm, "Boudreau, Emile" <[EMAIL PROTECTED]>
wrote:
> Thanks for the reply. When I use the instruction from that list this is
> the email I receive. I'm using Outlook.
>
> [EMAIL PROTECTED]
> To:
> --
> From: [EMAIL PROTECTED]
> To: [EMAIL P
On Mar 20, 1:31 pm, "gtb" <[EMAIL PROTECTED]> wrote:
> I am working with a tool called maxQ that generates jython scripts.
> The tool runs in
>
> C:\maxq\bin.
>
> Rather than clutter up bin I want to put the scripts and other .py
> scripts in
>
> c:\maxq\bin\testScripts.
>
> When doing so the scrip
On Mar 20, 1:59 pm, "gtb" <[EMAIL PROTECTED]> wrote:
> On Mar 20, 1:51 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On Mar 20, 1:31 pm, "gtb" <[EMAIL PROTECTED]> wrote:
>
> > > I am working with a tool called maxQ that generates jython scripts.
> > > The tool runs in
>
> > > C:\maxq\bin.
>
> > > Rather t
On Mar 20, 2:53 pm, Mr Pekka Niiranen <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> is it possible to get the two annual daylight saving times
> (day, month and time) from Python by giving location
> in some country/location string ("Europe/Finland" for example).
>
> I need to ask country in program and cal
On Mar 20, 4:26 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>
>
>
> > On Mar 20, 12:25 pm, Steven D'Aprano
> > <[EMAIL PROTECTED]> wrote:
>
> >>Closing a file can (I believe) raise an exception. Is that documented
> >>anywhere? I've spent a lot of frustrating ti
On Mar 21, 6:03 am, Tuomas <[EMAIL PROTECTED]> wrote:
> This works:
> >>> raise StandardError(u'Wrong type')
> Traceback (most recent call last):
>File "", line 1, in ?
> StandardError: Wrong type
>
> but don't in Finnish:
> >>> raise StandardError(u'Väärä tyyppi')
> Traceback (most recent ca
On Mar 21, 6:03 am, Tuomas <[EMAIL PROTECTED]> wrote:
> This works:
> >>> raise StandardError(u'Wrong type')
> Traceback (most recent call last):
>File "", line 1, in ?
> StandardError: Wrong type
>
> but don't in Finnish:
> >>> raise StandardError(u'Väärä tyyppi')
> Traceback (most recent ca
On Mar 21, 8:03 am, "killkolor" <[EMAIL PROTECTED]> wrote:
> > Does InDesign export broken XML documents? What exactly is your problem?
>
> yes, unfortunately it does. it uses all possible unicode characters,
> though not all are alowed in valid xml (see link in the first post).
> in any way for m
On Mar 21, 1:42 pm, "PKKR" <[EMAIL PROTECTED]> wrote:
> I need a fast and efficient way to parse a combination string(digits +
> chars)
>
> ex: s = "12ABA" or "1ACD" or "123CSD" etc
>
> I want to parse the the above string such that i can grab only the
> first digits and ignore the rest of the chac
On Mar 21, 2:15 pm, "liam_herron" <[EMAIL PROTECTED]> wrote:
> Say I want to open a shared email inbox (named "DailyGoodEmails") that
> is different from my default Outlook inbox, how do I specify this?
>
> Currently, I would do:
>
> s = Dispatch("Outlook.Application")
> space = s.GetNameSpace("MAP
On Mar 22, 11:21 am, Michael Bentley <[EMAIL PROTECTED]>
wrote:
> On Mar 22, 2007, at 10:34 AM, John Salerno wrote:
>
> > Hi guys. It's been a while since I've used Python, so I got a little
> > rusty, but I really want to start using it again, just out of habit
> > and
> > for fun. Can anyone sugg
On Mar 22, 2:22 pm, "alisonken1" <[EMAIL PROTECTED]> wrote:
> On Mar 22, 11:48 am, John Salerno <[EMAIL PROTECTED]> wrote:
>
>
>
> > >http://www.pythonchallenge.com
>
> > Ugh, I gave up on that site a long time ago! :)
>
> I got stuck on 34 a couple of months ago and haven't had time to go
> back
On Mar 22, 1:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
> how can I do
> * for each sub-directory of the current directory
> * tar that to a tar file
> * remove that sub-directory
Grab the directories with the glob module and read them into a list.
Use a for loop to loop over the
On Mar 22, 4:00 pm, Tommy Grav <[EMAIL PROTECTED]> wrote:
> I am currently using Activepython 2.4.4, but would like to upgrade to
> 2.5. Am I right in thinking that if I do that I need to reinstall all
> the
> packages and modules (like numpy, scipy, pyfits, and so on)? Or is
> there a way to avoid
On Mar 23, 12:03 am, "PythonBiter" <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm very new in this Group as well Python language. I want to learn
> Python. So could you please advice me, and guide me how can i become
> master in Python !
>
> Thanks,
> Partha
If you need books for a beginner in
On Mar 23, 8:16 am, "Harlin Seritt" <[EMAIL PROTECTED]> wrote:
> Using the code below:
>
> ---BEGIN CODE---
>
> value = raw_input("Type a divisor: ")
> try:
>value = int(value)
>print "42 / %d = %d" % (value, 42/value)
> except ValueError:
> print "I can't convert the value to an in
On Mar 23, 8:29 am, [EMAIL PROTECTED] wrote:
> On Mar 23, 8:16 am, "Harlin Seritt" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Using the code below:
>
> > ---BEGIN CODE---
>
> > value = raw_input("Type a divisor: ")
> > try:
> >value = int(value)
> >print "42 / %d = %d" % (value, 42/value)
> > exc
On Mar 23, 8:16 am, "Harlin Seritt" <[EMAIL PROTECTED]> wrote:
> Using the code below:
>
> ---BEGIN CODE---
>
> value = raw_input("Type a divisor: ")
> try:
>value = int(value)
>print "42 / %d = %d" % (value, 42/value)
> except ValueError:
> print "I can't convert the value to an in
On Mar 23, 9:29 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote:
> Hi, I have a function, which looks like the following:
>
> connecting = False
> def func ():
> global connecting
> connecting = True
> try:
># Do lot of network stuff
> except Exception, e:
> connec
On Mar 23, 12:52 pm, belinda thom <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm writing a function that polls the user for keyboard input,
> looping until it has determined that the user has entered a valid
> string of characters, in which case it returns that string so it can
> be processed up the call
On Mar 23, 1:20 pm, belinda thom <[EMAIL PROTECTED]> wrote:
> On Mar 23, 2007, at 11:04 AM, [EMAIL PROTECTED] wrote:
>
>
>
> > On Mar 23, 12:52 pm, belinda thom <[EMAIL PROTECTED]> wrote:
> >> Hi,
>
> >> I'm writing a function that polls the user for keyboard input,
> >> looping until it has determ
On Mar 23, 2:51 pm, "KDawg44" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am very new to Python and really just began studying and using it.
> I read that it was relatively easy to interact with Windows machines
> with Python and I am desperately looking for something to replace
> VBScript (not a big fa
On Mar 24, 11:30 am, "Robert Hicks" <[EMAIL PROTECTED]> wrote:
> I want to upgrade to 2.5 but I don't see any unistall instructions
> anywhere.
>
> Robert
Windows allows us to uninstall it. I think the only thing it really
installs is the files, and then it sets the system path, so just
delete the
On Mar 24, 10:31 am, Anastasios Hatzis <[EMAIL PROTECTED]> wrote:
> I'm looking for a pattern where different client implementations can use the
> same commands of some fictive tool ("foo") by accessing some kind of API.
> Actually I have the need for such pattern for my own tool
> (http://openswar
On Mar 26, 8:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> OK...
> I've been told that Both Fortran and Python are easy to read, and are
> quite useful in creating scientific apps for the number crunching, but
> then Python is a tad slower than Fortran because of its a high level
> langua
On Mar 26, 10:20 am, BH <[EMAIL PROTECTED]> wrote:
> Hi !
>
> I have a small problem with wx.Grid and scrollbars.
> Scrollbars definitively dissapears after resizing the frame.
>
> Thx for help
>
> #--
> import wx,wx.grid
> #--
On Mar 26, 10:53 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote:
> Hi, I'm writing an application that connects to the internet.
> Something like this:
>
> for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
> af, socktype, proto, canonname, sa = res
> try:
> self.s
On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
> I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> I skip over these widgets when using the tab key?
>
> Thank you,
> John
I would probably write some custom event handling. Something that
could tell it was a key-press eve
On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote:
> On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
>
> > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> > I skip over these widgets when using the tab key?
>
> > Thank you,
> > John
>
> I would probably write some custom eve
On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote:
> On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am, [EMAIL
> PROTECTED] wrote:
>
> > > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
>
> > > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> > > >
On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote:
> I have a lot of except Exception, e statements in my code, which poses some
> problems. One of the biggest is whenever I refactor even the triviallest
> thing in my code.
>
> I would like python to abort, almost as if it were a compile-time e
On Mar 26, 1:07 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote:
> >> I have a lot of except Exception, e statements in my code, which poses some
> >> problems. One of the biggest is whenever I refactor even the trivia
On Mar 26, 1:17 pm, "jp" <[EMAIL PROTECTED]> wrote:
> On Mar 26, 12:34 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote:
>
> > > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am,
> > > [EMAIL PROTECTED] wrote:
>
> > > > > On Mar 26, 10:51
On Mar 26, 11:30 am, BH <[EMAIL PROTECTED]> wrote:
> Yes, absolutely, but try to minimize it, and the scrollbars stays hidden !!!
>
> [EMAIL PROTECTED] a écrit :
>
> > On Mar 26, 10:20 am, BH <[EMAIL PROTECTED]> wrote:
> >> Hi !
>
> >> I have a small problem with wx.Grid and scrollbars.
> >> Scroll
On Mar 27, 8:30 am, Jan Danielsson <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>
>
>Although I have encountered many modules that have impressed me with
> regards to what they can actually do -- too be perfectly honest, it's
> very rare that I become impressed by the _interfaces_ to the modules.
On Mar 27, 8:19 am, "Legend" <[EMAIL PROTECTED]> wrote:
> I wasn't able to run a Python script. But then later I was able to run
> it through the Shell. I was experimenting with cron jobs and set up
> the python execution in as a cron. The first time it ran, It was fine
> but then after that, it st
On Mar 27, 12:15 am, Shane Geiger <[EMAIL PROTECTED]> wrote:
> I believe you are looking for os.getpid()
>
> 李现民 wrote:
> > hi ,all
> >any one knows how to enumerate the current running processes , or
> > how to obtain a specific process by its name or process id. I know I
> > can do this in ma
On Mar 27, 9:07 am, Kevin Walzer <[EMAIL PROTECTED]> wrote:
> Kevin Walzer wrote:
> > I'm trying to decide whether I need threads in my Tkinter application or
> > not. My app is a front end to a command-line tool; it feeds commands to
> > the command-line program, then reads its output and displays
On Mar 27, 9:59 am, [EMAIL PROTECTED] wrote:
> I've been using the xml.sax.handler module to do event-driven parsing
> of XML files in this python application I'm working on. However, I
> keep having really pesky invalid token exceptions. Initially, I was
> only getting them on control characters,
301 - 400 of 708 matches
Mail list logo