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 h

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

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

2005-05-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin 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

Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin 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

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

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 w

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 hear

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

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] > > > Pe

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

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

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 looki

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) > http://effb

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,

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

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 propos

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

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

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. > > Ho

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

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:

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 th

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

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 ma

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Russell E. Owen
In article , Ned Deily wrote: > In article , > Russell Owen wrote: > > I installed the Mac binary on my Intel 10.5.6 system and it works, > > except it still uses Apple's system Tcl/Tk 8.4.7 instead of my > > ActiveState 8.4.19 (which is in /Library/Frameworks

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,

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 relie

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 w

Could someone please review patch 799428: fix Tkinter tk_focusNext?

2008-08-01 Thread Russell E. Owen
Patch 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

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 to

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

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 i

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

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 cont

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)? &

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 >

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

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 mailin

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

<    1   2