redirect stderr to syslog?

2014-08-15 Thread Russell E. Owen
We are using the syslog module for logging, and would like to redirect stderr to our log. Is there a practical way to do it? I realize the logging module supports this and has a syslog writer, so that's a fallback. But we were hoping to use the syslog module for performance. -- Russell --

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
In article c2pqokfofe...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Nicholas Cannon wrote: I do like the idea of making a .dmg file because i have used them downloading other apps and it works great but i dont know how to make them! In Disk Utility, use

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may be time to switch. I've heard many good things about wxpython and qt, but not used either, and am wondering if somebody could tell me if

Re: Running python's own unit tests?

2013-11-15 Thread Russell E. Owen
In article 5285223d.50...@timgolden.me.uk, Tim Golden m...@timgolden.me.uk wrote: http://docs.python.org/devguide/ Thank you and the other responders. I was expecting to find the information here http://docs.python.org/2/using/unix.html under Building Python. The developer's guide is a nice

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in python, but nothing about testing a

Re: Why is Ruby on Rails more popular than Django?

2013-03-07 Thread Russell E. Owen
In article 3d9fe0b2-7931-4ab6-8929-235460729...@q9g2000pbf.googlegroups.com, rusi rustompm...@gmail.com wrote: On Mar 6, 11:03 pm, Jason Hsu jhsu802...@gmail.com wrote: I'm currently in the process of learning Ruby on Rails.  I'm going through the Rails for Zombies tutorial, and I'm

Re: Keeping a Tkinter GUI alive during a long running process

2012-12-26 Thread Russell E. Owen
In article kb0jjh$7pm$1...@dont-email.me, Kevin Walzer k...@codebykevin.com wrote: I maintain a Tkinter application that's a front-end to to a package manger, and I have never been able to find a way to keep the app from locking up at some point during the piping in of the package manager's

Re: Tkinter bug in Entry widgets on OS X

2012-09-13 Thread Russell E. Owen
In article k1qhgn$me0$1...@dont-email.me, Kevin Walzer k...@codebykevin.com wrote: On 8/31/12 6:18 AM, Arnaud Delobelle wrote: I'm very inexperienced with Tkinter (I've never used it before). All I'm looking for is a workaround, i.e. a way to somehow suppress that output. What are you

Re: What's wrong with this code?

2012-07-23 Thread Russell E. Owen
In article CAPTjJmqrhztsUkRSYb56=TX=hdomvo8mepcsy0ytjauptcm...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: On Tue, Jul 24, 2012 at 12:50 AM, Stone Li viewfromoff...@gmail.com wrote: I'm totally confused by this code: Code: Boiling it down to just the bit that matters:

Re: pickle question: sequencing of operations

2012-05-09 Thread Russell E. Owen
In article calwzidk3e353cnuuqpwr-4rromx7c9dbzapawurern9uzyu...@mail.gmail.com, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, May 8, 2012 at 1:19 PM, Russell E. Owen ro...@uw.edu wrote: In article rowen-df116b.12542704052...@news.gmane.org,  Russell E. Owen ro...@uw.edu wrote: What

Re: pickle question: sequencing of operations

2012-05-08 Thread Russell E. Owen
In article rowen-df116b.12542704052...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: What is the sequence of calls when unpickling a class with __setstate__? From experimentation I see that __setstate__ is called and __init__ is not, but I think I need more info. I'm trying

pickle question: sequencing of operations

2012-05-04 Thread Russell E. Owen
What is the sequence of calls when unpickling a class with __setstate__? From experimentation I see that __setstate__ is called and __init__ is not, but I think I need more info. I'm trying to pickle an instance of a class that is a subclass of another class that contains unpickleable objects.

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-05 Thread Russell E. Owen
In article 3d0bf288-fa5d-48e5-9529-db92d420a...@1g2000yqv.googlegroups.com, Rick Johnson rantingrickjohn...@gmail.com wrote: On Feb 29, 11:24 pm, Terry Reedy tjre...@udel.edu wrote: On 2/29/2012 10:22 PM, Rick Johnson wrote: PS: I would highly suggest against using the from Tkinter

Generator problem: parent class not seen

2012-02-01 Thread Russell E. Owen
I have an odd and very intermittent problem in Python script. Occasionally it fails with this error: Traceback (most recent call last): File /Applications/APO/TTUI.app/Contents/Resources/lib/python2.7/TUI/Base/Bas eFocusScript.py, line 884, in run File

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Russell E. Owen
In article CALwzidk11rqXjaxcwNKy5C2iotaBO_BcDWL_zFC6Rctue=4...@mail.gmail.com, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Nov 10, 2011 at 2:52 PM, Russell E. Owen ro...@uw.edu wrote: I am trying to write a decorator that times an instance method and writes the results to a class member

Decorator question: prefer class, but only function works

2011-11-10 Thread Russell E. Owen
I am trying to write a decorator that times an instance method and writes the results to a class member variable. For example: def timeMethod(func): def wrapper(self, *args, **keyArgs): t1 = time.time() res = func(self, *args, **keyArgs) duration = time.time() - t1

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Russell E. Owen
In article nad-304e10.20284516042...@news.gmane.org, Ned Deily n...@acm.org wrote: In article dd982bd4-02ab-4395-afee-cd3d0eeb7...@u.washington.edu, Russell Owen ro...@u.washington.edu wrote: I installed the Mac binary on my Intel 10.5.6 system and it works, except it still uses Apple's

Re: RELEASED Python 2.6.2

2009-04-15 Thread Russell E. Owen
Thank you for 2.6.2. I see the Mac binary installer isn't out yet (at least it is not listed on the downloads page). Any chance that it will be compatible with 3rd party Tcl/Tk? Most recent releases have not been; the only way I know to make a compatible build is to build the installer on a

Re: Tkinter event loop question

2008-08-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], gordon [EMAIL PROTECTED] wrote: On Aug 29, 4:45 am, Russell E. Owen [EMAIL PROTECTED] wrote: your Controller object should not create root nor should it call mainloop to start the event loop. guys thanks for the helpful replies..I rewrote the code as you

Re: Tkinter event loop question

2008-08-28 Thread Russell E. Owen
In article [EMAIL PROTECTED], gordon [EMAIL PROTECTED] wrote: On Aug 27, 10:42 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: so I guess the question here is from where you expect to call that method, and what you expect Tkinter to do when you call it... thanks for the reply i was

Re: ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.

2008-08-14 Thread Russell E. Owen
In article [EMAIL PROTECTED], Dudeja, Rajat [EMAIL PROTECTED] wrote: Hi, So, now I've finally started using Eclipse and PyDev as an IDE for my GUI Application. I just wrote some sample programs as an hands on. Now I would like to take up Tkinter. I'm using Active State Python version

Can't seem to build python against custom tcl/tk

2008-08-13 Thread Russell E. Owen
I'm trying to build a non-framework python on MacOS X 10.5 using a custom tcl/tk that lives in an arbitrary directory. (For complicated reasons we don't want the system tcl/tk). It is easy to build an X11 tcl/tk this way (and we are content with X11) so I did that. Unfortunately I can't seem

Could someone please review patch 799428: fix Tkinter tk_focusNext?

2008-08-01 Thread Russell E. Owen
Patch http://bugs.python.org/issue799428 is a trivial (one word) fix to a long-standing issue with Tkinter: calls to the widget method tk_focusNext() fail with unsubscriptable object error. Admittedly we've lived a long time with this bug. But the fix is so simple and so obviously safe that it

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], William McBrine [EMAIL PROTECTED] wrote: On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote: http://undefined.org/python/py2app.html py2app bundles Python itself into the app, right? I wonder, is there no way to create an app bundle that relies on the

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Tommy Nordgren [EMAIL PROTECTED] wrote: On 28 jul 2008, at 03.59, William McBrine wrote: On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote: http://undefined.org/python/py2app.html py2app bundles Python itself into the app, right? I wonder, is there

Re: Pass data from Python to C++

2008-05-15 Thread Russell E. Owen
In article [EMAIL PROTECTED], brad [EMAIL PROTECTED] wrote: I have some c++ binaries that do rather intense number computations. They do it well and rather quickly compared to other languages (not just Python). ... However, other components can be written in a more user friendly, more

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Bjoern Schliessmann [EMAIL PROTECTED] wrote: Martin v. Löwis wrote: e is an exception object, not a Unicode object. Er, sure, thanks for pointing that out. At first sight he should substitute e with e.message then since he tries to convert to string (for

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Donn Cave [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Martin v. Löwis [EMAIL PROTECTED] wrote: I have code like this: except Exception, e: self.setState(self.Failed, str(e)) which fails if the exception contains a unicode argument.

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! Russell E. Owen writes: [...] So...to repeat the original question, is there any simpler unicode-safe replacement for str(exception)? Please show us the tracebacks you get becuae unicode(s) must

Simple unicode-safe version of str(exception)?

2008-04-28 Thread Russell E. Owen
I have code like this: except Exception, e: self.setState(self.Failed, str(e)) which fails if the exception contains a unicode argument. I did, of course, try unicode(e) but that fails. The following works, but seems rather messy: except Exception, e: errStr = ,.join([unicode(s) for s in

Re: Tkinter: Missing the last piece of the puzzle

2008-02-27 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Simon Forman wrote: yes! check out http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/464635 HTH, ~Simon Thanks, Simon. Looks like that will do it. Actually, it looks like that will overdo it. I'll be setting

Re: pyinstall and matplotlib

2008-02-13 Thread Russell E. Owen
In article [EMAIL PROTECTED], John Henry [EMAIL PROTECTED] wrote: 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

Re: Truncated postings

2008-02-13 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hello, Over the past 24 hours or so, all of my Python-List e-mails have been truncated to subject list only. No posts. Are others experiencing this problem? Or is it just on my end? Thanks, Lloyd R. Prentice I'm not seeing that.

Re: Tkinter equiv for setPalette

2008-02-11 Thread Russell E. Owen
In article [EMAIL PROTECTED], Helmut Jarausch [EMAIL PROTECTED] wrote: Hi, I am to convert an old Perl-Tk script to Python. It starts by my $MW= new MainWindow; $MW-setPalette(background = 'AntiqueWhite1', foreground = 'blue'); Is there an equivalent for Tkinter? How can I set default

Re: Problem with Tkinter scrollbar callback

2008-01-25 Thread Russell E. Owen
In article [EMAIL PROTECTED], Ivan Van Laningham [EMAIL PROTECTED] wrote: Hi All-- That helps. Doing a get() on the scrollbar before a set(0.0,0.0) returns a 4-tuple: (0.0, 0.0, 0.0, 0.0) ! I did the set(0.0,0.0) and now the callback gets the correct number of arguments. However, I'm

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Russell E. Owen
In article [EMAIL PROTECTED], Ivan Van Laningham [EMAIL PROTECTED] wrote: Hi All-- I'm having two problems with the scrollbar callback on linux systems (Fedora 7, Suse 10.1,2 and 3 all exhibit the issues). Problem one: on Windows, the callback is called with the arguments as specified in

Re: When is min(a, b) != min(b, a)?

2008-01-23 Thread Russell E. Owen
In article [EMAIL PROTECTED], Christian Heimes [EMAIL PROTECTED] wrote: Grant Edwards wrote: In many applications (e.g. process control) propogating NaN values are way too useful to avoid. Avoiding NaN would make a lot of code far more complicated than would using them. NaNs are very

Re: Using python as primary language

2007-11-13 Thread Russell E. Owen
In article [EMAIL PROTECTED], Michel Albert [EMAIL PROTECTED] wrote: In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: * Database

Re: Build Python 2.5 against Tk 8.5

2007-10-16 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: Martin v. Löwis wrote: I'd like to experiment with Tk 8.5 (now in beta) in my Python application, but Python 2.5 requires Tk 8.4.x. Why do you say that? AFAIK, that's not the case. It's been a while, but when I've

Re: Tkinter pack difficulty

2007-09-12 Thread Russell E. Owen
In article [EMAIL PROTECTED], Simon Forman [EMAIL PROTECTED] wrote: Hi all, I realize this is more of a Tk question than a python one, but since I'm using python and don't know Tcl/Tk I figured I'd ask here first before bugging the Tcl folks. I am having a terrible time trying to get a

Re: An ordered dictionary for the Python library?

2007-09-12 Thread Russell E. Owen
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Wed, 12 Sep 2007 07:33:45 +, Mark Summerfield wrote: I feel that Python lacks one useful data structure: an ordered dictionary. I find such data structures v. useful in C++. [snip] Personally, I've

Re: Python and GUI

2007-05-24 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Just wondering on what peoples opinions are of the GUIs avaiable for Python? All I am doing is prompting users for some data (listbox, radio buttons, text box, ect...). Then I will have some text output, maybe a scrolling text

Re: Tcl-tk 8.5?

2007-05-02 Thread Russell E. Owen
In article [EMAIL PROTECTED], Méta-MCI [EMAIL PROTECTED] wrote: Hi! See http://wiki.tcl.tk/10630 Any plan to integrate Tcl 8.5 in standard Python? I'm curious about the plans, also. But I can say this much...Tcl/Tk 8.5 is still in alpha (and has been for years). I have heard rumors

Re: Re-running script from Tk shell

2007-04-30 Thread Russell E. Owen
In article [EMAIL PROTECTED], gtb [EMAIL PROTECTED] wrote: I am testing a simple script by running it in the Tk shell. It imports a class from another module. I edit and save the file from which I import. When I want to re-run I delete the Tk window and run the module from the Edit window

Re: Which are your favorite UML tools?

2007-04-27 Thread Russell E. Owen
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Anastasios Hatzis a écrit : Hello, I'm working on the light-weight MDA tool pyswarm, http://pyswarm.sourceforge.net/ (it is about a code-generator for Python/PostgreSQL-based software. I plan to add support

Re: Welch essential for learning Tkinter well?

2007-04-06 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: James Stroud wrote: This begs the question, is anyone truly an expert in Tkinter? Frederick Lundh is, if anyone is. http://www.pythonware.com/library/tkinter/introduction/index.htm (outdated)

Re: Tkinter Toplevel geometry

2007-03-26 Thread Russell E. Owen
In article [EMAIL PROTECTED], Chris [EMAIL PROTECTED] wrote: Hi, If a user resizes a Toplevel window, or I set a Toplevel's geometry using the geometry() method*, is there any way to have the geometry reset to that required for all the widgets? I think I found what I'm looking for in tk

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
In article [EMAIL PROTECTED], Martin Unsal [EMAIL PROTECTED] wrote: I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the isomorphism between filesystem

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
In article [EMAIL PROTECTED], Martin Unsal [EMAIL PROTECTED] wrote: On Mar 6, 9:34 am, Chris Mellon [EMAIL PROTECTED] wrote: It assumes that util.common is a module thats on the PYTHONPATH. Now we're getting somewhere. :) The common way to ensure that this is the case is either to

Re: Converting a c array to python list

2007-03-02 Thread Russell E. Owen
In article [EMAIL PROTECTED], zefciu [EMAIL PROTECTED] wrote: Hi! I want to embed a function in my python application, that creates a two-dimensional array of integers and passes it as a list (preferably a list of lists, but that is not necessary, as the python function knows the

Re: setting up wxPython on a Mac

2006-11-03 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: Brian Blais wrote: I'm not sure about numpy/scipy/matplotlib. I don't think there are pre-built packages for them; you may have to build them from source. You could also post to the MacPython mailing list, someone there has

Re: Python/Tkinter crash.

2006-10-04 Thread Russell E. Owen
In article [EMAIL PROTECTED], Hendrik van Rooyen [EMAIL PROTECTED] wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted ... Everything seems to work fine. - there is a thread that runs to move the

py2app question: Resources/Python - Resources/lib/python2.4

2006-09-08 Thread Russell E. Owen
I was using an older version of py2app to distribute an application. This placed the python library code in TUI.app/Contents/Resources/Python I just upgraded to py2app 0.3.5 and now I find the same stuff is being put in TUI.app/Contents/Resources/lib/python2.4 This change breaks my code because

Re: Database access through python using GUI(Tkinter)

2006-06-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], arvind [EMAIL PROTECTED] wrote: hi all, i am accessing sql+ database through python 2.4.3. i am using Tkinter to build my screens. how can i pass parameters on the click event of button from one function to the another? What do you mean by this? If you mean

Re: PEP 3102 for review and comment

2006-05-22 Thread Russell E. Owen
In article [EMAIL PROTECTED], Talin [EMAIL PROTECTED] wrote: (Note: PEPs in the 3xxx number range are intended for Python 3000, however this particular PEP may be backported if there is support for it.) PEP: 3102 Title: Keyword-Only Arguments ... Syntactically, the proposed changes

Re: PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Russell E. Owen
+1 It does seem like a natural unificiation of the language -- one less exception to learn. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter problem on Mac OS X

2006-04-10 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Andrew Trevorrow) wrote: Our app uses embedded Python to allow users to run arbitrary scripts. Scripts that import Tkinter run fine on Windows, but on Mac OS X there is a serious problem. After a script does root = Tk() our app's menus are

Re: Problem w/Tkinter on 2.5 (Panther)

2006-03-29 Thread Russell E. Owen
I don't know, and I'm sorry this isn't more helpful, but...if you don't get an answer here, I suggest you post to the python apple mailing list. If you prefer a newsgroup interface (as I do), use gmane's news server and subscribe to gmane.comp.python.apple (you may still have to join the

Re: How can I test if an argument is a sequence or a scalar?

2006-01-11 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I want to be able to pass a sequence (tuple, or list) of objects to a function, or only one. It's easy enough to do: isinstance(var, (tuple, list)) But I would also like to accept generators. How can I do this? Anything else is assumed

Re: Any wing2.0 users here?

2006-01-03 Thread Russell E. Owen
In article [EMAIL PROTECTED], Alvin A. Delagon [EMAIL PROTECTED] wrote: Thanks for all the recommendations! I took a look on wingide2.0 on my linux box and it seems pretty good and has a lot of nifty features (which is pretty daunting to use since I've been programming with no IDE at all) and

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Russell E. Owen
In article [EMAIL PROTECTED], Benji York [EMAIL PROTECTED] wrote: Russell E. Owen wrote: I disagree. Once you've picked a database (not trivial in itself, of course), you typically only have a few options for talking to in in Python. Perhaps it's off-topic for this thread, but I think

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Alex Martelli) writes: To put it another way: one reason I love Python is that I strongly subscribe to the idea that there should preferably be only one obvious way to do something. Unfortunately,

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
In article [EMAIL PROTECTED], Mike Meyer [EMAIL PROTECTED] wrote: Ben Sizer [EMAIL PROTECTED] writes: I see what you mean, but unfortunately I think there is a lot more fuzziness than that. If the separate parts were clearly delineated things would be a lot better. I look to the Database API

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-08 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: I'm a Tcl/Tk developer who has been dabbling with Python for some time,... Well, I have finally found a good reason to learn Python in more depth:... Any advice, particularly from other programmers with a lot of experience in

[Ann] RO package 2005-10-31

2005-10-31 Thread Russell E. Owen
RO package 2005-10-31 is now available from http://www.astro.washington.edu/rowen/ROPython.html What is it? A package of python utilities I wrote to support a telescope control interface. RO has a strong emphasis on the Tkinter GUI library, networking, astronomy and cross-platform support

Re: Tkinter or Python issue?

2005-10-19 Thread Russell E. Owen
In article [EMAIL PROTECTED], Eric Brunel [EMAIL PROTECTED] wrote: You should now see why it works here: your first tkFont.Font is remembered at Python level in a variable. So it is not discarded once the tag_config is over. So the second tkFont.Font is not allocated at the same location, so

Re: How to get a unique id for bound methods?

2005-08-24 Thread Russell E. Owen
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: Russell E. Owen wrote: Having looked at it again, it is familiar. I copied it when I wrote my own code. I avoided using at the time both because the initial underscore suggested it was a private method and because

Re: High Level FTP library

2005-08-23 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paulo Pinto [EMAIL PROTECTED] wrote: Hello, Is there any Python library similar to NET::FTP from Perl? ftplib seems too lowlevel. I already found a few, but would like to get one that is endorsed by the community. Try urllib or urllib2; these are included with

Re: How to get a unique id for bound methods?

2005-08-23 Thread Russell E. Owen
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: Russell E. Owen wrote: The current issue is associated with Tkinter. I'm trying to create a tk callback function that calls a python function (any python callable entity). To do that, I have to create a name for tk

Re: How to get a unique id for bound methods?

2005-08-23 Thread Russell E. Owen
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: Russell E. Owen wrote: The current issue is associated with Tkinter. I'm trying to create a tk callback function that calls a python function (any python callable entity). To do that, I have to create a name for tk

Re: Sorta noob question - file vs. open?

2005-08-23 Thread Russell E. Owen
In article [EMAIL PROTECTED], Peter A. Schott [EMAIL PROTECTED] wrote: Been reading the docs saying that file should replace open in our code, but this doesn't seem to work: # Open file for writing, write something, close file MyFile = file(MyFile.txt, w) MyFile.write(This is a test.)

Re: How to get a unique id for bound methods?

2005-08-22 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Bengt Richter) wrote: On Fri, 19 Aug 2005 16:33:22 -0700, Russell E. Owen [EMAIL PROTECTED] wrote: [...] The current issue is associated with Tkinter. I'm trying to create a tk callback function that calls a python function (any python callable

Re: How to get a unique id for bound methods?

2005-08-19 Thread Russell E. Owen
In article [EMAIL PROTECTED], Benji York [EMAIL PROTECTED] wrote: Russell E. Owen wrote: The id of two different methods of the same object seems to be the same, and it may not be stable either. Two facts you're (apparently) unaware of are conspiring against you: 1) the id of an object

Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: Martin Franklin [EMAIL PROTECTED] writes: I suspect you need to look at the columnconfigure / rowconfigure methods of the container (toplevel or frame) Thanks, columnconfigure turned out to be the answer and Peter

Re: tkinter puzzler

2005-05-12 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: I have a gui with a bunch of buttons, labels, the usual stuff. It uses the grid manager: gui = Frame() gui.grid() gui.Label().grid() # put some widgets into the gui ...# more widgets Now at the the

Fast plotting?

2005-04-26 Thread Russell E. Owen
Can anyone recommend a fast cross-platform plotting package for 2-D plots? Our situation: We are driving an instrument that outputs data at 20Hz. Control is via an existing Tkinter application (which is being extended for this new instrument) that runs on unix, mac and windows. We wish to

Re: How to define a window's position (Tkinter)

2005-02-28 Thread Russell E. Owen
In article [EMAIL PROTECTED], Harlin Seritt [EMAIL PROTECTED] wrote: I am trying to use the geometry() method with the toplevel window called root. I know that one can do the following: root.geometry('400x400+200+200') This will put the window in 200, 200 position with a size of 400x400. Now,

Re: tkinter socket client ?

2005-01-25 Thread Russell E. Owen
In article [EMAIL PROTECTED], Tonino [EMAIL PROTECTED] wrote: thanks for this info - I had to abandon the createfilehandler() method as it is not supported in windows and the GUI might be used there at some time ... So - I went the threading route - works well - for now - so I will stick to it

Re: Configuring Python for Tk on Mac

2005-01-24 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Martyn Quick) wrote: On my desk here at work I have a Mac G4 running Mac OS X v10.2.8. When I go into a terminal and type python up comes a nice python interface and all seems great. However when I type import Tkinter I'm greeted by the

Re: tkinter socket client ?

2005-01-24 Thread Russell E. Owen
In article [EMAIL PROTECTED], Tonino [EMAIL PROTECTED] wrote: yeah - had a look at createfilehandler() - was a bit confusing - but your example helps ;) Be warned that createfilehandler does not work on Windows, though it works well on unix and MacOS X. So my suggestion is one to try any of

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Alex Martelli) wrote: I'm considering proposing to O'Reilly a 2nd edition of Python in a Nutshell, that I'd write in 2005, essentially to cover Python 2.3 and 2.4 (the current 1st edition only covers Python up to 2.2). ... Since you were kind

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Alex Martelli) wrote: Russell E. Owen [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Alex Martelli) wrote: I'm considering proposing to O'Reilly a 2nd edition of Python in a Nutshell, that I'd write in 2005