Pushing for Pythoncard 1.0

2011-05-02 Thread John Henry
Attempt to push Pythoncard to a 1.0 status is now underway. A temporary website has been created at: http://code.google.com/p/pythoncard-1-0/ The official website continues to be http://pythoncard.sourceforge.net/ Pythoncard is such a wonderful package that it would be a shame to allow developm

Re: Reading Outlook .msg file using Python

2010-10-22 Thread John Henry
On Oct 21, 1:48 am, Tim Golden wrote: > On 21/10/2010 09:34, Jon Clements wrote: > > > Only just noticed this thread, and had something similar. I took the > > following approach:- > > > (I'm thinking this might be relevant as you mentioned checking whether > > your client'sOutlookcould export .EM

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 9:01 am, John Henry wrote: > On Oct 20, 1:41 am, Tim Golden wrote: > > > > > On 19/10/2010 22:48, John Henry wrote: > > > > Looks like this flag is valid only if you are getting messages > > > directly from Outlook.  When reading the msg file,

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 1:41 am, Tim Golden wrote: > On 19/10/2010 22:48, John Henry wrote: > > > Looks like this flag is valid only if you are getting messages > > directly from Outlook.  When reading the msg file, the flag is > > invalid. > > > Same issue when accessi

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 19, 2:46 pm, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>> A

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-18 Thread John Henry
On Oct 18, 4:09 am, Tim Golden wrote: > On 17/10/2010 20:25, John Henry wrote: > > > Not knowing anything about MAPI, I tried a number of the MAPI flags, > > the only one that works appears to be PR_SUBJECT. > > PR_CLIENT_SUBMIT_TIME, PR_CREATION_TIME and so forth doesn

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 11:37 am, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-16 Thread John Henry
On Oct 12, 10:31 am, Tim Golden wrote: > On 12/10/2010 4:59 PM, John Henry wrote: > > > According to: > > >http://support.microsoft.com/kb/813745 > > > I need to reset my Outlook registry keys.  Unfortunately, I don't have > > my Office Install CD with me.

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is

Re: Reading Outlook .msg file using Python

2010-10-11 Thread John Henry
On Oct 11, 3:56 am, Tim Golden wrote: > On 10/10/2010 22:51, John Henry wrote: > > > I have a need to read .msg files exported from Outlook.  Google search > > came out with a few very old posts about the topic but nothing really > > useful.  The email module in Python

Re: Reading Outlook .msg file using Python

2010-10-10 Thread John Henry
On Oct 10, 8:27 pm, Lawrence D'Oliveiro wrote: > In message > , John > > Henry wrote: > > I have a need to read .msg files exported from Outlook. > > Try using EML format instead. That’s plain text. Thanks for the reply. I would have to check to see if my clien

Reading Outlook .msg file using Python

2010-10-10 Thread John Henry
Hello all: I have a need to read .msg files exported from Outlook. Google search came out with a few very old posts about the topic but nothing really useful. The email module in Python is no help - everything comes back blank and it can't even see if there are attachments. Did find a Java libr

Re: Invoking CutePDF from within Python

2009-02-17 Thread John Henry
On Feb 13, 3:15 am, cm wrote: > Hi John,> All I need is to say "Print this to CUTEPDF and store as xyz.pdf". > > I can't answer you question but let me make a suggestion: Try > PdfCreator. It lets you control all the process using an activex > control. It has events to tell you when the jobs has f

Invoking CutePDF from within Python

2009-02-12 Thread John Henry
Hi all, I have a need to invoke CutePDF from within a Python program. The program creates an EXCEL spreadsheet and set the print area and properties. Then I wish to store the spreadsheet in a PDF file. xtopdf does not work well (text only). ReportLab is an overkill. PyPDF can only shuffle PDF p

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 3:42 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > >> John Henry wrote: > > >>> Hi list, > > >>> I can't understan

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > Hi list, > > > I can't understand this. The following import statement works fine: > > > from PythonCard.templates.dialogs import runOptionsDialog &g

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 1:18 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > John Henry schrieb: > > > Hi list, > > > I can't understand this. The following import statement works fine: > > > from PythonCard.templates.dialogs import runOpt

Why can't I import this?

2008-05-13 Thread John Henry
Hi list, I can't understand this. The following import statement works fine: from PythonCard.templates.dialogs import runOptionsDialog but this one fails: from PythonCard.tools.codeEditor.codeEditor import CodeEditor I've checked and rechecked to make sure that the spellings are prope

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-05-06 Thread John Henry
On May 5, 11:04 am, [EMAIL PROTECTED] wrote: > John, you are the man > > > during my search for perfection, I found Qooxdoo (http://qooxdoo.org/). > > > ... > > > I found QxTransformer > > (http://sites.google.com/a/qxtransformer.org/qxtransformer/Home) which is a > > XSLT toolkit that creats XML

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 1:16 pm, Panyasan <[EMAIL PROTECTED]> wrote: > On 29 Apr., 20:30, Panyasan <[EMAIL PROTECTED]> wrote: > > > On 29 Apr., 18:17, John Henry <[EMAIL PROTECTED]> wrote: > > > > There are a whole bunch of test programs that comes with Pythoncard.

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 8:28 am, Panyasan <[EMAIL PROTECTED]> wrote: > > Christian, > > > It appears you're missing a file. Where did you placed my program? I > > see that there are two places being mentioned: > > > > no resource file for /Users/bibliograph/Programme/PythonCard/tools/ > > > layoutEditor/multi

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 1:57 am, Panyasan <[EMAIL PROTECTED]> wrote: > Hi, > > I am one of the two developers working on the xml-to-javascript > converter (qxtransformer) John has mentioned and we are thrilled that > our project has found a use in the PythonCard community. > > However, we have a problem getting

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread John Henry
On Apr 28, 12:41 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > > > > > Do keep us posted ! > > > TIA, > > fp > > Check it out now. > > Only one to be added is the Mult

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread John Henry
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > > Do keep us posted ! > > TIA, > fp Check it out now. Only one to be added is the Multicolumn List (table), and then menus. The other widgets (Togglebutton, BitmapCanvas, Gauge, Notebook, CodeEditor) will not be implemented initially

Re: How do I say "Is this a function"?

2008-04-27 Thread John Henry
On Apr 27, 10:49 am, Lie <[EMAIL PROTECTED]> wrote: > On Apr 27, 11:01 am, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > > > def f1(): > > > >print

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-27 Thread John Henry
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > John Henry <[EMAIL PROTECTED]> said : > > > Welcome to the modernized world of Pythoncard!!! > > Hey, that's really neat ! > > I remember dabbling in Pythoncard in the early days, some years ag

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-27 Thread John Henry
On Apr 27, 11:36 am, Ron Stephens <[EMAIL PROTECTED]> wrote: > John, > > This is very interesting! Please do make this available. I love > PythonCard, but I am doing mainly web programming these days. > > I will mention this on my next podcast. Can you do a slider? > > Ron Stephens > Python411www.a

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 3:03 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > > > > In article <[EMAIL PROTECTED]>, > > John Henry  <[EMAIL PROTECTED]> wrote: > > > >But then I looked closer.

Re: How do I say "Is this a function"?

2008-04-26 Thread John Henry
On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > def f1(): > >    print "In f1" > > > def f3(): > >    print "In f3" > > > def others(): > >    print "In others" > > > for i in xrange(1,3): > >    fct = "f%d()"%(i+1) > >    try: > >       exec fct > >    except: > >       others

How do I say "Is this a function"?

2008-04-26 Thread John Henry
How do I determine is something a function? For instance, I don't want to relying on exceptions below: def f1(): print "In f1" def f3(): print "In f3" def others(): print "In others" for i in xrange(1,3): fct = "f%d()"%(i+1) try: exec fct except: others() I wish

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 4:05 pm, [EMAIL PROTECTED] wrote: > On Apr 26, 5:03 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > In article <[EMAIL PROTECTED]>, > > > John Henry <[EMAIL PROTECTED

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > John Henry <[EMAIL PROTECTED]> wrote: > > > > >But then I looked closer. It turns out the XML file created by > >QxTransformer is *very* similar in structure when

So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-25 Thread John Henry
For serveral years, I have been looking for a way to migrate away from desktop GUI/client-server programming onto the browser based network computing model of programming. Unfortunately, up until recently, browser based programs are very limited - due to the limitation of HTML itself. Eventhough

Re: 有中国人乎?

2008-04-14 Thread John Henry
On Apr 14, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Penny Y. wrote: > > Steve Holden 写道: > > >> 但学会从未是立即, 和将需要一点时间。 > > > What do you mean? > > If I understand you correctly, maybe it should be, > > > 学习python不可一日而成,需要循序渐进. > > > Am I right? > > I have no idea. Babelfish (from which I ob

Re: How is GUI programming in Python?

2008-04-10 Thread John Henry
On Apr 9, 6:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but > nothing of any complexity. I'd like to build a really simple GUI app > that will work across Ma

Re: Python in High School

2008-04-03 Thread John Henry
On Apr 3, 10:17 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> Well I doubt it's the visual environment that makes it more easy, > >> color, shape and position can give some extra information though. > >> I think apriori domain knowledge and flattness of information are of far > >> more importanc

Re: Python in High School

2008-04-03 Thread John Henry
On Apr 3, 12:24 pm, ajaksu <[EMAIL PROTECTED]> wrote: > On Apr 2, 5:01 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > However, once I start teaching him variables, expressions, loops, and > > what not, I found that (by surprise) he had great difficulties > > c

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 2, 1:32 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > > >> On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > >>> Python needs no evangelizing but I ca

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 2, 1:01 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > > > On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > > > Python needs no evangelizing but I can tell you that it is a powerfull &

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > > Python needs no evangelizing but I can tell you that it is a powerfull > > tool. I prefer to think that flash is rather visualization tool than > > programing language, and java needs

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:38 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > On Mar 31, 10:37 am, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Mar 31, 10:24 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > I am looking for a some tool

Re: Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
olive wrote: > On 31 mar, 18:05, John Henry <[EMAIL PROTECTED]> wrote: > > I was searching for a way to redevelop a desktop Pythoncard based > > program into a web-application. I understand what need to be done for > > all of the non-GUI code. For the GUI capabiliti

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:24 am, 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

Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
I was searching for a way to redevelop a desktop Pythoncard based program into a web-application. I understand what need to be done for all of the non-GUI code. For the GUI capabilities, I stumbled across a package call qooxdoo (http://qooxdoo.org/). It appears to provide the GUI capabilities I

Re: Return value of an assignment statement?

2008-02-23 Thread John Henry
On Feb 23, 2:59 am, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Dennis Lee Bieber wrote: > > On Fri, 22 Feb 2008 11:23:27 -0800, Jeff Schwab <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > >> I'm about through with this discussion, but FWIW, this is a real gotcha > >> for me a

Re: global variables: to be or not to be

2008-02-22 Thread John Henry
On Feb 22, 9:20 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Fri, 22 Feb 2008 19:11:01 -0800 (PST), icarus <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > But how do I get around it? How do I update and access a variable > > anytime I want? Any easy-to-follow e

Re: Return value of an assignment statement?

2008-02-21 Thread John Henry
On Feb 21, 2:06 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote: > >> On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote: > > >>> Hi all. In C, an a

Re: Return value of an assignment statement?

2008-02-21 Thread John Henry
On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote: > > > > > Hi all. In C, an assignment statement returns the value assigned. For > > instance: > > > int x > > int y =

Re: Return value of an assignment statement?

2008-02-21 Thread John Henry
On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote: > Hi all. In C, an assignment statement returns the value assigned. For > instance: > > int x > int y = (x = 3) > > In the above example, (x=3) returns 3, which is assigned to y. > > In python, as far as I can tell, assignment statem

Re: pyinstall and matplotlib

2008-02-18 Thread John Henry
On Feb 18, 8:04 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Feb 18, 7:34 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Feb 17, 11:50 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > > > > hi John, > > > > John Henry wrote: >

Re: pyinstall and matplotlib

2008-02-18 Thread John Henry
On Feb 18, 7:34 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Feb 17, 11:50 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > > > > > hi John, > > > John Henry wrote: > > > Anybody willing to help? > > > I struggled the past few days with

Re: pyinstall and matplotlib

2008-02-18 Thread John Henry
On Feb 17, 11:50 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > hi John, > > John Henry wrote: > > Anybody willing to help? > > I struggled the past few days with the same problem, > and with the help of Werner Bruhin (wxPython list) I found a solution. > I had

Re: pyinstall and matplotlib

2008-02-17 Thread John Henry
Anybody willing to help? On Feb 14, 11:17 am, John Henry <[EMAIL PROTECTED]> wrote: > Thank you for the response. I am having trouble using the script. I > am assuming the TUI is the application this script was developed for > and did my best to replace that with the name of my o

Re: pyinstall and matplotlib

2008-02-14 Thread John Henry
msw26uh_vc.dll", ], excludes = [ # modules to exclude "_gtkagg", "_wxagg", ], #includes = inclModules, packages = inclPackages, ) ), windows=[ # windows= for no console, console=

Re: pyinstall and matplotlib

2008-02-13 Thread John Henry
On Feb 9, 2:53 pm, John Henry <[EMAIL PROTECTED]> wrote: > Has anybody been able to create an exe of their python applications > involving matplotlib using pyinstall (ver 1.3)? I am getting a: > > RuntimeError: Could not find the matplotlib data files > > when

pyinstall and matplotlib

2008-02-09 Thread John Henry
Has anybody been able to create an exe of their python applications involving matplotlib using pyinstall (ver 1.3)? I am getting a: RuntimeError: Could not find the matplotlib data files when I attempt to run the exe created. In searching the web, it appears this is an issue when others tr

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-31 Thread John Henry
>Why the HELL has nobody answered my question >! Urhpeople in HELL can't answer your question. Try sending your post to HEAVEN... -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding method to a class on the fly

2007-06-24 Thread John Henry
On Jun 24, 12:40 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Jun 24, 1:19 am, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Jun 23, 6:24 pm, Steven D'Aprano > > > <[EMAIL PROTECTED]> wrote: > > > On Sat, 23 Jun 2007 12:31:39 -0

Re: Adding method to a class on the fly

2007-06-24 Thread John Henry
On Jun 24, 1:19 am, John Henry <[EMAIL PROTECTED]> wrote: > On Jun 23, 6:24 pm, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > > On Sat, 23 Jun 2007 12:31:39 -0700, John Henry wrote: > > > it works fine but PythonCard isn't calling this function whe

Re: Adding method to a class on the fly

2007-06-24 Thread John Henry
On Jun 23, 6:24 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sat, 23 Jun 2007 12:31:39 -0700, John Henry wrote: > > it works fine but PythonCard isn't calling this function when I > > clicked on the button. > > I think you need to take this question ont

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 23, 10:56 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sat, 23 Jun 2007 09:06:36 -0700, John Henry wrote: > > >> > But then how do I create the on_Button1_mouseClick function? > > >> That depends on what it is supposed to do, but in gene

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 23, 10:56 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sat, 23 Jun 2007 09:06:36 -0700, John Henry wrote: > > >> > But then how do I create the on_Button1_mouseClick function? > > >> That depends on what it is supposed to do, but in gene

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
> > > But then how do I create the on_Button1_mouseClick function? > > That depends on what it is supposed to do, but in general you want a > factory function -- a function that returns functions. Here's a simple > example: > Steven, May be I didn't explain it clearly: the PythonCard package exp

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 22, 7:36 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 22 Jun 2007 14:44:54 -0700, John Henry wrote: > > The above doesn't exactly do I what need. I was looking for a way to > > add method to a class at run time. > > > What does work, is t

Re: Adding method to a class on the fly

2007-06-22 Thread John Henry
On Jun 22, 2:28 pm, askel <[EMAIL PROTECTED]> wrote: > On Jun 22, 5:17 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > > > On Jun 22, 2:24 pm, askel <[EMAIL PROTECTED]> wrote: > > > > class Dummy: > > > def method(self, arg): > > > print arg > > > > def method2(self, arg): > > > self.method(arg)

Re: Adding method to a class on the fly

2007-06-22 Thread John Henry
Found a message on the web that says I need to use setattr to add the method to the class at run time. But how do I do that? Regards, On Jun 22, 12:02 pm, John Henry <[EMAIL PROTECTED]> wrote: > Hi list, > > I have a need to create class methods on the fly. For example, if I

Adding method to a class on the fly

2007-06-22 Thread John Henry
Hi list, I have a need to create class methods on the fly. For example, if I do: class Dummy: def __init__(self): exec '''def method_dynamic(self):\n\treturn self.method_static("it's me")''' return def method_static(self, text): print text return I like

statistical functions for Date/Time data series

2007-04-26 Thread John Henry
I am looking for a simple Python function for handling a set of time series data. For instance, I might have the following raw data (year's worth): 1/1/200512:00 AM11.24 1/1/200512:10 AM12.31 1/1/200512:20 AM12.06 1/1/200512:30 AM11.

Re: Debugging multithreaded program using Eclipse/Pydev

2007-04-09 Thread John Henry
On Apr 7, 3:23 pm, Heikki Toivonen <[EMAIL PROTECTED]> wrote: > John Henry wrote: > >>From what I can gather, it appears the only *real* option I have is to > > debug under Eclipse/Pydev. I did a google search of this newsgroup > > and didn't turn up too many

Re: Debugging multithreaded program using Eclipse/Pydev

2007-04-06 Thread John Henry
On Apr 6, 1:33 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Apr 6, 2007, at 2:32 PM, John Henry wrote: > > > I am back against the wall trying to migrate my multithreaded > > application from Python 2.3 to 2.5. The part of the code that's > > failing ha

Debugging multithreaded program using Eclipse/Pydev

2007-04-06 Thread John Henry
I am back against the wall trying to migrate my multithreaded application from Python 2.3 to 2.5. The part of the code that's failing has to do with queues (2.3 queues and 2.5 queues are not the same). Since WingIDE doesn't support multithread debugging (they've been saying that one day they mi

Re: PythonCard thoughts

2007-03-19 Thread John Henry
> > Do we know more things about the developing of this product, is it > active/dead or something ?? > I plan to use it to create something that will take a long time to > finish and i wouldn't want to find out that the product is a dead- > end... There is still "some" development work going on bu

Re: PythonCard thoughts

2007-03-19 Thread John Henry
On Mar 19, 5:08 am, "king kikapu" <[EMAIL PROTECTED]> wrote: > Hi to all folks here, > > i downloaded and "playing" with PythonCard and i just want to share my > thoughts so maybe we can discuss a little about it. > I was used to wxGlade before and i think PythonCard is even better. > I like the se

Re: PythonCard or Dabo?

2007-03-19 Thread John Henry
On Mar 19, 10:24 am, 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. >

File IO errors with PyPDF

2007-03-09 Thread John Henry
Hi list, I am having trouble with PyPDF (tried earlier as well as latest version 1.9). I am using it to combine a number of single page PDF files into one. It works perfectly for up to 8 files but after that, I get a "too many files opened" message. My code goes somewhat like: PdfOutput = Pdf

Re: floating point rounding

2007-03-09 Thread John Henry
On Mar 9, 5:45 am, hg <[EMAIL PROTECTED]> wrote: > hg wrote: > > Hi, > > > Here is my issue: > > > f = 1.5 * 0.01 > > f > >>> 0.014999 > > '%f' % f > >>>'0.015000' > > > But I really want to get 0.02 as a result ... is there a way out ? > > > Thanks, > > > hg > > round Or more precise

Re: Matplotlib axes label

2007-03-02 Thread John Henry
On Mar 2, 7:22 am, [EMAIL PROTECTED] wrote: > On Mar 2, 7:02 am, "John Henry" <[EMAIL PROTECTED]> wrote: > > > On Mar 1, 10:07 pm, "John Henry" <[EMAIL PROTECTED]> wrote: > > > > On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote: > > (sni

Re: Matplotlib axes label

2007-03-02 Thread John Henry
On Mar 1, 10:07 pm, "John Henry" <[EMAIL PROTECTED]> wrote: > On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote: > > > > > On Mar 1, 3:10 pm, "John Henry" <[EMAIL PROTECTED]> wrote: > > > > I've been asking this question at the matpl

Re: Matplotlib axes label

2007-03-01 Thread John Henry
On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote: > On Mar 1, 3:10 pm, "John Henry" <[EMAIL PROTECTED]> wrote: > > > I've been asking this question at the matplotlib user list and never > > gotten an answer. I am hoping that there are matplotlib users here &

Matplotlib axes label

2007-03-01 Thread John Henry
I've been asking this question at the matplotlib user list and never gotten an answer. I am hoping that there are matplotlib users here that can help. My problem with matplotlib's way of handling axes label is illustrated by this example: http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine

Re: Learning to program in Python

2007-01-05 Thread John Henry
jbchua wrote: > Hello everybody. > > I am an Electrical Engineering major and have dabbled in several > languages such as Python, C, and Java in my spare time because of my > interest in programming. However, I have not done any practical > programming because I have no idea where to get started.

Re: How to stop program when threads is sleeping

2006-12-25 Thread John Henry
many_years_after wrote: > Hi, pythoners: > > There is a problem I couldn't dispose. I start a thread in the my > program. The thread will do something before executing time.sleep(). > When the user give a signal to the main thread (such as click the 'end' > button or close the window), the t

Re: PythonCard Auto Placement

2006-12-21 Thread John Henry
Brandon McGinty wrote: > Hi All, > I'm getting started with pythoncard. > I'm wondering if there is any way to auto-place the gui elements that I > use, so that they are all visible, and aligned? > I would use the "layout/resource" editors, but I'm blind, so I can't see > where the elements end up

Re: Is it good to create a thread in a non gui thread?

2006-12-14 Thread John Henry
Yes, boogie man may show up and start munching your program. Lialie - KingMax wrote: > Hi, > I create a thread in a non gui thread, and it does well. But it seems > strange. Somebody told me better not for it may cause something hard to > imagine. > Is there any different between them? > > THX -

Re: Iterating over several lists at once

2006-12-14 Thread John Henry
Is this suppose to be a brain teaser or something? Michael Spencer wrote: > John Henry wrote: > > Carl Banks wrote: > > > >> The function can be extended to allow arbitrary arguments. Here's a > >> non-minmal recursive version. > >> > >>

Re: Iterating over several lists at once

2006-12-13 Thread John Henry
Carl Banks wrote: > > The function can be extended to allow arbitrary arguments. Here's a > non-minmal recursive version. > > def cartesian_product(*args): > if len(args) > 1: > for item in args[0]: > for rest in cartesian_product(*args[1:]): > yield (item

Re: client/server design and advice

2006-12-01 Thread John Henry
On the subject of passing things around, is there a no brainer way of sending files back and forth over Pyro? I am currently using a shared drive to do that. May be I missed that feature? Irmen de Jong wrote: > bruce wrote: > > hi irmen... > > > > happened to come across this post. haven't looke

Re: Thread help

2006-12-01 Thread John Henry
Why stop there? Bjoern Schliessmann wrote: > Grant Edwards wrote: > > On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> > > >> I would make 3 threads for a client application. > > > You should use 4. > > I vote for just 1. > > Regards, > > > Björn > > -- > BOFH excuse #236: > > Fanout droppin

Re: client/server design and advice

2006-12-01 Thread John Henry
TonyM wrote: > > Pyro rocks for that. > > Awesome, ill look into it in greater detail and will most likely use > it. Given what ive seen so far it looks like it will make the > client/server interface fairly easy to write. > Correction: not "fairly easy" - make that "incredibly easy". Even Mi

Re: Is python memory shared between theads?

2006-12-01 Thread John Henry
Wesley Henwood wrote: > So I declare a variable named A in thread1, in script1.py. I assign > the value of 2.5 to A. I then run script2.py in thread2. Script2.py > assigns the value of 5.5 to a variable named A. Now, when thread1 > resums execution, I see that A = 5.5, rather than 2.5 as I exp

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
Paul McGuire wrote: > "John Henry" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > John Henry wrote: > > > >> > >> Further, if splitUp is a sub-class of string, then I can do: > >> > >> alist,

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
Thomas Ploch wrote: > > John Henry schrieb: > > > Thomas Ploch wrote: > > > > >> >> I had a little bit of fun while writing this: > >> >> > >> >> itemList = (a,b,c1,c2,c3,d1,d2,d3,d4,d5) and > >> >> itemList2

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
Thomas Ploch wrote: > > I had a little bit of fun while writing this: > > itemList = (a,b,c1,c2,c3,d1,d2,d3,d4,d5) and > itemList2 = (a1,a2,a3,b,c,d1,d2,d3,d4,d5) the next time. > Huh? What's a,b,d5? > def getSlices(aCount, bCount, cCount, dCount, items): > a,b,c,d = (items[0:aCount],

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
John Henry wrote: > > Further, if splitUp is a sub-class of string, then I can do: > > alist, blist, clist, dlist = "ABCDEFGHIJ".slice((1,1,3,None)) > > Now, can I override the slice operator? Maybe like: alist, blist, clist, dlist = newStr("ABCDEFGHIJ&quo

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
John Henry wrote: > Paul McGuire wrote: > > "Paul McGuire" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > "John Henry" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > snip &g

Re: Is there an easier way to express this list slicing?

2006-11-30 Thread John Henry
Paul McGuire wrote: > "Paul McGuire" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "John Henry" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > snip > > G... that's what I get for no

  1   2   >