Re: Can I reference 1 instance of an object by more names ?

2007-05-23 Thread Eric Yaeger
>>> b2 = copy.deepcopy(b1) =.=.=.=.=.=.=.=.=.= The preceding text is an excerpt from Chapter 12 of book: How to Think Like a Computer Scientist Learning with Python by Allen B. Downey, Jeffrey Elkner and Chris Meyers [Book available for free download at http://www.thinkpython.com] = Bye from, Eric Yaeger Thailand -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread Eric Brunel
On Tue, 29 May 2007 19:02:03 +0200, <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to have different items in a listbox in different > colors? Or is it just one color for all items in a listbox? > Thanks > Rahul > AFAIK, this is not possible with a listbox. You can however quite easily emula

Re: Making Gridded Widgets Expandable

2007-07-30 Thread Eric Brunel
On Mon, 30 Jul 2007 15:59:21 +0200, Jim <[EMAIL PROTECTED]> wrote: > Hi, > I'm looking at page 548 of Programming Python (3rd Edition) by Mark > Lutz. > The following GUI script works with no problem, i.e., the rows and > columns expand: > ==

Re: File handle not being released by close

2007-07-30 Thread Eric Brunel
On Mon, 30 Jul 2007 16:36:00 +0200, <[EMAIL PROTECTED]> wrote: > Hi, > > I'm in the process of writing some code and noticed a strange problem > while doing so. I'm working with PythonWin 210 built for Python 2.5. I > noticed the problem for the last py file processed by this script, > where the c

Re: for statement on empty iterable

2007-08-22 Thread Eric Abrahamsen
Here's another simple method: l = ['j', 'a', 'm', 'e', 's'] counter = 0 for i in l: # Do your code counter += 1 print counter Yrs, Eric > l = ['j', 'a', 'm', 'e', 's'] > &g

way to define static method

2007-08-22 Thread Eric CHAO
I think Python uses a very strange way to define static method in a class. Why not make it like this? class MyClass: def my_static_method(self): # self should be None as it's a static method # just ignore self I'm a newcomer so maybe it's quite naive. But I just wonder why it

Re: way to define static method

2007-08-22 Thread Eric CHAO
Thanks a lot. Because I found a solution about static method from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52304 And that's a little bit difficult to understand. # direct, naive approach -- doesn't work...: class Class1: def static1(name): print "Hello",name # ...but no

Re: IDE for Python

2007-08-24 Thread Eric CHAO
I think many python developers don't need such an IDE actually. Just like Ruby guys, they use a powerful editor, for example, Textmate, instead of all-in-one IDE. It's quick and direct. On 8/21/07, Joel Andres Granados <[EMAIL PROTECTED]> wrote: > Hello list: > > I have tried various times to use

Re: Tkinter

2007-09-04 Thread Eric Brunel
On Tue, 04 Sep 2007 07:12:00 +0200, vijayca <[EMAIL PROTECTED]> wrote: > i tried to use python gui module Tkinter in solaris,aix,hpux. > while importing the module it shows an error... > > import Tkinter > error says that your python may not be configured for Tk()... > how to get out of this.

Re: Tkinter(2)

2007-09-05 Thread Eric Brunel
On Tue, 04 Sep 2007 15:42:09 +0200, vijayca <[EMAIL PROTECTED]> wrote: > my python installation is:Active python 2.5.1 > i am using Red Hat Linux > i have the Tkinter module installed but any simple script produces an > error > > script: > from Tkinter import Label > widget = Label(None, text=

Re: Multi Heritage with slots

2007-09-05 Thread Eric Brunel
On Wed, 05 Sep 2007 11:01:56 +0200, Alexandre Badez <[EMAIL PROTECTED]> wrote: > Hye, > > I'm developing a little app, and I want to make multi heritage. > My problem is that my both parent do have __slots__ define. > > So I've got something like: > > class foo(object): > __slots__ = ['a', '

Re: ??????urllib post????????????

2007-09-05 Thread Eric Abrahamsen
It's in Chinese, so ASCII is no go. If anyone's interested in answering his question (he's trying to download a linked file using the post method from urllib tools, not something I know about) I can translate it, and pass the answer back to him once there's some kind of consensus. E On S

Re: Tkinter menus

2007-03-02 Thread Eric Brunel
On Fri, 02 Mar 2007 13:41:12 +0100, Gigs_ <[EMAIL PROTECTED]> wrote: > is it alright to use Menu instead Toplevel or Tk > like this? > > from Tkinter import * > from tkMessageBox import * > > class MenuDemo(Menu): > def __init__(self, master=None): > Menu.__init__(self, master) >

Re: tkinter what do you use?

2007-03-02 Thread Eric Brunel
On Fri, 02 Mar 2007 16:17:32 +0100, Gigs_ <[EMAIL PROTECTED]> wrote: > list = Listbox() > list.insert('end', x) > list.insert(END, x) > > > what do you use 'end' or END? >>> from Tkinter import END >>> END == 'end' True So this isn't really important... My personal usage varies: for your use c

Re: UTF-8

2007-03-12 Thread Eric Brunel
On Sat, 10 Mar 2007 15:00:04 +0100, Olivier Verdier <[EMAIL PROTECTED]> wrote: [snip] > The default encoding i wish to set is UTF-8 since it encodes unicode and > is nowadays the standard encoding. I can't agree with that: there are still many tools completely ignoring the encoding problem,

performance question

2007-03-14 Thread Eric Texier
uot; + str(a[1]) + " " + str(a[2]) + "\n") also it there a relevant speed difference between making few small write instead of 1 bigger one. Thanks for any feed back, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter popup

2007-03-27 Thread Eric Brunel
On Tue, 27 Mar 2007 12:05:07 +0200, Gigs_ <[EMAIL PROTECTED]> wrote: > Hi all > > I cant figure out how to disable resizing of my popup window? myPopupWindow.wm_resizable(0, 0) It may or may not make resize controls disappear depending on your platform and/or window manager. But the resizing w

Re: tkinter MVC

2007-03-27 Thread Eric Brunel
On Tue, 27 Mar 2007 13:29:25 +0200, Gigs_ <[EMAIL PROTECTED]> wrote: > Can someone give me example how to write text editor in tkintter with > model-view-controler? > What goes to controler and what goes to model? > > thanks in advance Others may have a different opinion, but I think using MVC

os.system questions

2007-03-31 Thread Eric Price
e "up"? os.system("/usr/local/etc/rc.d/zz_mysql_starter_script.sh") When I substitute a test variable for "up", I don't get this script to actually run. Everything else is tested and works. Why won't this script run? TIA, Eric ___

Re: os.system questions

2007-03-31 Thread Eric Price
e.match(' ', char): print "gotcha!" it prints "gocha!" Now, that substitution for the "up" var is what I got as output from the "uptime" command at the shell prompt. So, obviously, it should be running the script! What am I

Re: os.system questions

2007-03-31 Thread Eric Price
a cron event such that "freshReboot" actually gets called when I run test.py? TIA, Eric >From: "Eric Price" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >CC: python-list@python.org >Subject: Re: os.system questions >Date: Sat, 31 Mar 2007 09:33:03 -0400 > &g

Re: os.system questions

2007-03-31 Thread Eric Price
Thank you :) Eric >From: "Parthan SR" <[EMAIL PROTECTED]> >To: "Eric Price" <[EMAIL PROTECTED]> >Subject: Re: os.system questions >Date: Sat, 31 Mar 2007 19:52:01 +0530 > >On 3/31/07, Eric Price <[EMAIL PROTECTED]> wrote: >> >>

Can't Get Email Interface Working

2007-04-07 Thread Eric Price
4/mimetools.py", line 130, in choose_boundary hostid = socket.gethostbyname(socket.gethostname()) socket.gaierror: (8, 'hostname nor servname provided, or not known') >>> Now, I can send email from my server no problem. In fact, I have my script working already...but with a shell script instead of this python code. Please advise. TIA, Eric _ Get a FREE Web site, company branded e-mail and more from Microsoft Office Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
Good grief! And they call a 722-line program "simple"?! LOL! I did what I need to do with a __one_line_shell_script__ LOL! Naw, if I have to go through all that, I'll skip on python this time around, thank you very much! Eric >From: hlubenow <[EMAIL PROTECTED]> >

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
From: "Tim Williams" <[EMAIL PROTECTED]> To: "Eric Price" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], python-list@python.org Subject: Re: Can't Get Email Interface Working Date: Sat, 7 Apr 2007 17:53:28 +0100 On 07/04/07, Eric Price <[EMAIL PROTECTED]> w

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
> Complain to the providers of the server? Or find out what the host >name is for the outgoing SMTPd connection, and use it directly. Complaining isn't going to help. How do I determine the outgoing smtpd connection and how do I use it directly

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
>From: Dennis Lee Bieber <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: Can't Get Email Interface Working >Date: Sat, 07 Apr 2007 20:07:53 GMT > >On Sat, 07 Apr 2007 13:42:38 -0500, "Eric Price" ><[EMAIL PROTECTED]> declaimed the follo

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
mail >Email( > from_address = "[EMAIL PROTECTED]", > to_address = "[EMAIL PROTECTED]", > subject = "Subject", > message = "Text of the message" >).send() > That's easy enough ;)

Debugging doctest failures

2007-04-08 Thread Eric Mahurin
Noob here. Just got into python a little over a week ago... One of the (unique?) things I really like about python is the concept of doctesting. But, now I want more! Here's what I'd like to see: * easy debugging. As soon as there is a failure (unexpected exception or mismatch), drop down int

Pass A Var To a Python Script?

2007-04-11 Thread Eric Price
Hi; How do I pass a variable to a python script? Something like this (which doesn't work): ./test.py?var=hello_world TIA, Eric _ Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check savings https://www2.nexta

descriptor object for an attribute?

2007-04-11 Thread Eric Mahurin
Is there a standard way to get a descriptor object for an arbitrary object attribute - independent of whether it uses the descriptor/ property protocol or not. I want some kind of handle/reference/ pointer to an attribute. I know I could make my own class to do this (using the __dict__ of the obj

Re: descriptor object for an attribute?

2007-04-14 Thread Eric Mahurin
On Apr 11, 3:07 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Eric Mahurin a écrit : > > > Is there a standard way to get a descriptor object for an arbitrary > > object attribute - independent of whether it uses the descriptor/ > > property protocol or no

Re: Tkinter / Tk 8.5

2007-09-27 Thread Eric Brunel
On Thu, 27 Sep 2007 04:41:48 +0200, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Michal Bozon wrote: >> Today has been released a first beta of Tk 8.5, including a Ttk >> (tile) style engine, which makes possible the native look >> of widgets on MS platform, without having to install any ext

Pb with an AttributeError

2007-09-27 Thread Eric BOUVIER
Hello, First, sorry for my english. I've just been assigned a project written in Python which contains bug(s). I've never programmed in Python, but I've read the code and understood basically what the different source codes do. I've traced the code and found where the problem is but I don't

RE: Pb with an AttributeError

2007-09-27 Thread Eric BOUVIER
but only one with "=". I find str() and applied it to tranform the type 'dict' in a sting type. Thus, I arrived to get "136" with regular expression. Thanks > -Message d'origine- > De : Nathan Harmston [mailto:[EMAIL PROTECTED] > Envoyé

Re: Traveling Europe

2007-09-27 Thread Eric Sosman
[EMAIL PROTECTED] wrote: > World's most popular traveling destinations > > http://... "Nobody goes there any more; it's too crowded." -- LPB -- Eric Sosman [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-05 Thread Eric Brunel
On Fri, 05 Oct 2007 05:16:14 +0200, goldtech <[EMAIL PROTECTED]> wrote: > This works OK. But I notice that if I enlarge the window after the > script has run, the white listbox only gets "so" big while the grey > background enlarges. > > Is there a way to have it all white when I enlarge a windo

Re: tkinter question

2007-10-05 Thread Eric Brunel
On Fri, 05 Oct 2007 14:10:57 +0200, Kevin Walzer <[EMAIL PROTECTED]> wrote: > "expand = 1" == "expand=TRUE"--that means the widget resizes itself > when the window is re-sized. That's the theory... But what does fill=BOTH means then? And why does expand=1 (or TRUE, or True) is only needed i

Re: tkinter question

2007-10-08 Thread Eric Brunel
On Sun, 07 Oct 2007 18:09:16 +0200, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: >> "Kevin Walzer" <[EMAIL PROTECTED]> wrote: >> >>> I find "pack" to be more flexible than "grid," so I prefer it for >>> complex layouts. "grid" is better for simple layouts. >> *does a dou

Re: Cross-platform GUI development

2007-10-12 Thread Eric Brunel
On Fri, 12 Oct 2007 10:13:29 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been programming in Python for 5 or more years now and whenever I > want a quick-n-dirty GUI, I use Tkinter. This is partly because it's > the first toolkit I learnt, but also because it's part of the standard

Re: Cross-platform GUI development

2007-10-15 Thread Eric Brunel
On Sat, 13 Oct 2007 06:34:14 +0200, Michael L Torrie <[EMAIL PROTECTED]> wrote: [snip] > You do have > to take pains to make the app "feel" native, though. Like follow the UI > guidelines of the platform, etc. You're absolutely right; I just wanted to add a precision: it's true for every too

Re: Python's coming... from unexpected angles.

2007-10-16 Thread Eric Brunel
On Tue, 16 Oct 2007 11:14:57 +0200, Ben Finney <[EMAIL PROTECTED]> wrote: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > >> Just found this: > > The direct link to the article is > http://www.boingboing.net/2007/10/16/french-lady-finds-py.html>. > >> I do believe that Python should be somewh

Re: Python's coming... from unexpected angles.

2007-10-17 Thread Eric Brunel
On Tue, 16 Oct 2007 13:19:26 +0200, Ben Finney <[EMAIL PROTECTED]> wrote: > "Eric Brunel" <[EMAIL PROTECTED]> writes: > >> Well, I'd definetely vote for a name change for PyPy, as in french, >> it's pronounced "pee-pee", and yes, it me

Python Instructor Needed for GIS Symposium in April 2008

2007-10-30 Thread Eric . Foster
me by phone or email if you have questions or would like to volunteer. Thanks. Eric Foster, Senior Transportation Planner MoDOT, 600 NE Colbern Rd. Lee's Summit, MO 64086 (816) 622-6330 -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing widgets in text windows

2007-01-29 Thread Eric Brunel
On Fri, 26 Jan 2007 22:35:20 +0100, <[EMAIL PROTECTED]> wrote: > Hi, I've been searching for a .resize()-like function to overload much > like can be done for the delete window protocol as follows: > > toplevel.protocol("WM_DELETE_WINDOW", callback) > > I realize that the pack manager usually hand

Re: Resizing widgets in text windows

2007-01-31 Thread Eric Brunel
On Tue, 30 Jan 2007 23:13:07 +0100, <[EMAIL PROTECTED]> wrote: > I'm using a text widget to hold a set of plots, one plot per line, > such that the scrolling capability of the text widget can be taken > advantage of to display only a subset of the plots at any given time. > In the analyses my progr

Re: Tkinter Scrolling

2007-02-02 Thread Eric Brunel
On Thu, 01 Feb 2007 20:26:08 +0100, D <[EMAIL PROTECTED]> wrote: > Bob Greschke wrote: >> The typical way to do it is to make a scrolling canvas and >> pack the buttons and other stuff into an empty Frame() and then pack >> the frame on to the canvas, which I haven't had to do yet. >> >> Bob > Than

when will python 2.5 take in mainstream?

2007-02-04 Thread Eric CHAO
A lot of application based on python claim that python 2.3 or 2.4 is needed not 2.5, ie. mysqldb. I've been using python for months. I don't care about 2.4 or 2.5. But I like the default icons of python in 2.5. So I just use that, but some scripts can't work on that. When will all these applicatio

Coordinate Grid Points

2007-02-05 Thread Eric . Gabrielson
ee a more in depth discription of the game. Many Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Coordinate Grid Points

2007-02-05 Thread Eric . Gabrielson
3) acessing the x value from the x,y > > coordinate function. the assignment description is located here http:// > >www.cs.washington.edu/education/courses/142/07wi/homework/ > > homework.html if you would like to see a more in depth discription of > > the game. > >

Re: Coordinate Grid Points

2007-02-06 Thread Eric . Gabrielson
quot;Please guess a coordinate point from (1,1) to > >>>(20,20): ") as opposed to ("Please enter an x value:" and "Please > >>>enter a y value") and finally 3) acessing the x value from the x,y > >>>coordinate function. the assignment descripti

Re: Coordinate Grid Points

2007-02-06 Thread Eric . Gabrielson
t; > > > Anyways heres my error: > > **** > > ***File "C:/Documents and Settings/Eric/Desktop/Python/2d guessing > > game.py", line 11, in *** > > ***randp = Point(random.randint(1, 20), random.randint(1, > > 20))

Re: ps tkinter

2007-02-07 Thread Eric Brunel
On Wed, 07 Feb 2007 13:40:33 +0100, yvesd <[EMAIL PROTECTED]> wrote: > For a bit more help about my previous message (outlook bar) > does anybody know how to reparent or change a widget(button)'s owner > in tkinter ? > here's my code that doesn't work : > def inverse(self): > if (self.

Re: Newbie Question

2007-02-08 Thread Eric . Gabrielson
On Feb 8, 2:17 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-02-08, Reid <[EMAIL PROTECTED]> wrote: > > > I am just starting to play with programing again as a hobby. I have heard > > good things about python. I have not really looked into the language much. > > My question is, will python

Re: Tkinter and Tile

2007-02-12 Thread Eric Brunel
On Mon, 12 Feb 2007 09:24:20 +0100, Ben Finney <[EMAIL PROTECTED]> wrote: > Howdy all, > > Python programmers looking for a built-in GUI toolkit are told two > things: one, Python already comes with a GUI toolkit, and two, it > looks equally ugly on all platforms. This is because the Tk widget > li

Re: Tkinter checkbuttons and variables

2007-02-21 Thread Eric Brunel
On Wed, 21 Feb 2007 15:50:57 +0100, Gigs_ <[EMAIL PROTECTED]> wrote: > from Tkinter import * > > states = [] > > def onpress(i): > states[i] = not states[i] > > > root = Tk() > for i in range(10): > chk = Checkbutton(root, text= str(i), command=lambda i=i: > onpress(i)) > chk.pack(

connection pool in python?

2007-02-22 Thread Eric CHAO
Connection Pool is necessary in web applications with Java and JDBC. So does python have something like that? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert to binary and convert back to strings

2007-02-23 Thread Eric Pederson
Harlin Seritt wrote: >Hi... > >I would like to take a string like 'supercalifragilisticexpialidocius' >and write it to a file in binary forms -- this way a user cannot read >the string in case they were try to open in something like ascii text >editor. I'd also like to be able to read the binary f

convert python scripts to exe file

2007-02-24 Thread Eric CHAO
I know py2exe can make an exe file. But python runtime dll is still there. How can I combine the dll file into the exe, just make one file? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about idiomatic use of _ and private stuff.

2007-02-26 Thread Eric Brunel
On Sun, 25 Feb 2007 22:12:52 +0100, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Steven W. Orr a écrit : >> I understand that two leading underscores in a class attribute make the >> attribute private. > > Nope. It doesn't make it "private", it mangles the attribute name with > the class

Re: Having multiple instances of a single application start a single instance of another one

2007-02-26 Thread Eric Brunel
On Fri, 23 Feb 2007 23:39:03 +0100, Troy Melhase <[EMAIL PROTECTED]> wrote: >> The first time A starts, it should open a B process and start >> communicating with it. All other times an A instance starts it should >> simply talk with the B that already is open. > > B should write its process id

Re: New to Tkinter GUI building

2007-03-02 Thread Eric Brunel
On Thu, 01 Mar 2007 21:01:40 +0100, Adam <[EMAIL PROTECTED]> wrote: > Ok the window has resized but the elements inside are still like they > were, so they are going off the edge on the window. How can I get > these to resize? I have put sizes on the frames they are in. Sorry to > keep asking bu

Re: Tkinter menus

2007-03-02 Thread Eric Brunel
On Thu, 01 Mar 2007 22:35:40 +0100, James Stroud <[EMAIL PROTECTED]> wrote: > Gigs_ wrote: >> class MenuDemo(Frame): >> def __init__(self, parent=None): >> Frame.__init__(self, parent) >> self.pack(expand=YES, fill=BOTH) >> self.createWidgets() >> def createWidget

Re: newbie:this program stops responding after pressing quit button

2007-12-04 Thread Eric Brunel
On Tue, 04 Dec 2007 14:32:34 +0100, Boris <[EMAIL PROTECTED]> wrote: > I am using windows vista and python 2.5 .This program stops responding > after pressing quit button. I am not able to figure the problem out. > please help. > > from Tkinter import * > > def greeting( ): > print 'Hello stdou

Re: Text widget updates only after calling method exits (threading issue?)

2007-12-12 Thread Eric Brunel
On Wed, 12 Dec 2007 02:58:37 +0100, mariox19 <[EMAIL PROTECTED]> wrote: > Are Tkinter widgets running on their own thread? No. And usually, GUI toolkits and threads don't mix well... > If I try to make a simple application that will print the letters A to > Z to a Tkinter Text widget, and I spac

Vista + Rails 2.0 upgrade => subprocess hangs

2007-12-12 Thread Eric Promislow
ure what happens yet on XP, or other platforms. I'd like to get this working on Vista, though. Any ideas. Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Vista + Rails 2.0 upgrade => subprocess hangs

2007-12-12 Thread Eric Promislow
> > Your usage of wait() is dangerous. The code can block indefinitely when > the stdout or stderr buffer is full. > > Christian That's what it is. `rake -T` returns more data in Rails 2.0.1 than it did in 1.2.6 -- cross-language breakage logically explained. Thank you

How do i scale my axes in matplotlib?

2007-12-22 Thread Eric Holbrook
o let me set an aspect ratio of the axes. Anyone know how to do this? tia, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: [Baypiggies] SPECIAL: BayPIGgies: April 26, 7:30pm (Google)

2006-04-20 Thread Eric Brown
Is there anybody that is using turbogears that could do a short presentation or overview as well. It would be great to get a little bit of comparison. I may be choosing one of these in the near future. On Apr 20, 2006, at 2:46 PM, Aahz wrote: > NOTE: Special date of WEDNESDAY April 26 at Goo

Re: How can I call a python method from the XML-RPC client in Java?

2006-04-21 Thread Eric Brunel
On 20 Apr 2006 11:31:23 -0700, <[EMAIL PROTECTED]> wrote: > Hi all, > I have created a XML-RPC model (with server and client) written in > Java. > I want to call the methods in another XML-RPC model written in > Python. > I know that in Java, I can use like > "xmlrpc_client.excute("han

Re: How to align the text of a Listbox to the right

2006-04-27 Thread Eric Brunel
On 27 Apr 2006 02:35:50 -0700, Leonardo da Vinci <[EMAIL PROTECTED]> wrote: > Greetings gentlemen and ladies, > I have a question: in Tkinter, how to align a Listbox entry (i.e. a > line of text) to the right? In a real Listbox, the answer is simple: you can't. What are you trying to do? Maybe

Re: How to align the text of a Listbox to the right

2006-04-28 Thread Eric Brunel
On 27 Apr 2006 07:00:36 -0700, Leonardo da Vinci <[EMAIL PROTECTED]> wrote: > I have to use a Listbox that shows a list of entries. Every entry is a > char string quite long in size and I cannot set "width" to a large > value due to limitations of screen resolution. The rightmost part is > more

Re: Sorting a list of dictionaries by dictionary key

2006-05-03 Thread Eric Deveaud
than elem2 returns a positive value if elem1 is grater than elem2 returns zero if elem1 == elem2 you may write such fuction def dictionary_datetime_sorter(d1, d2): date1 = d1['from_datetime'] date2 = d2['from_datetime'] if date1 < date2: return -1

Re: Sorting a list of dictionaries by dictionary key

2006-05-03 Thread Eric Deveaud
bruno at modulix wrote: > Eric Deveaud wrote: > (snip) > > > > sort can take a comparaison function. > > The problem with it is that it may slow down things a lot... point taken. I have to purge my mind from the other programing languages I practice. ;-

Re: combined files together

2006-05-09 Thread Eric Deveaud
he cration date, or have to rely on the creation date ? if the name allows to discriminate the chronology, check glob module. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkfont.families does not list all installed fonts

2006-05-09 Thread Eric Brunel
On 7 May 2006 23:55:05 -0700, Atul <[EMAIL PROTECTED]> wrote: > Hi, > > I have installed a truetype font (.ttf) on a linux machne (SUSE linux > 10, KDE) by copying it to my .fonts folder. I can use the font in all > applications like open-office and firefox browser. > > However, I cannot use the f

Re: Tkinter Dialog Management problems:

2006-05-18 Thread Eric Brunel
On Thu, 18 May 2006 08:41:20 -0400, Michael Yanowitz <[EMAIL PROTECTED]> wrote: > Hello: > >Below I have included a stripped down version of the GUI I am working > on. > It contains 2 dialog boxes - one main and one settings. It has the > following > problems, probably all related, that

Re: Tkinter Dialog Management problems:

2006-05-19 Thread Eric Brunel
On Thu, 18 May 2006 11:52:54 -0400, Michael Yanowitz <[EMAIL PROTECTED]> wrote: > Thanks. That helped alot. No problem. > However it leaves a couple very minor problems which I think I can live > with. > 1) It brings up an empty additional 'main window'. >I have tried using the Tkinter.NoD

Re: Tk.iconname still there?

2006-05-22 Thread Eric Brunel
On 22 May 2006 10:56:16 +1000, Gary Wessle <[EMAIL PROTECTED]> wrote: > Hi > > I am going through a tutorial on Tkinter > http://doctormickey.com/python/pythontutorial_201.html, it referees to > Tk.iconname() but I could not locate one after googleing and browsed > and searched the Tkinter On-line

Re: Tkinter - incremental input ?

2008-01-30 Thread Eric Brunel
On Wed, 30 Jan 2008 13:32:00 +0100, Helmut Jarausch <[EMAIL PROTECTED]> wrote: [snip] > While I can bind '' to a callback, I haven't figured out how > to get (and later on set) the cursor within the Entry widget. > In other words I need to know at which character position the last > character was

Re: What should I use under *nix instead of freeze?

2008-02-04 Thread Eric Brunel
On Sat, 02 Feb 2008 00:08:21 +0100, Mike Kent <[EMAIL PROTECTED]> wrote: > In a comment Guido made on a recent bug report for the 'freeze' > utility, he stated: > > "I think nobody really cares about freeze any more -- it isn't > maintained." > > That being the case, what is the preferred/best rep

Re: Python GUI toolkit

2008-02-04 Thread Eric Brunel
On Sun, 03 Feb 2008 20:38:41 +0100, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: [snip] > Another toolkit you might look into is Tkinter. I think it is something > like the "official" toolkit for python. I also think it is an adapter > for other toolkits, so it will use gtk widgets on gnome, qt

Re: Tkinter. Why the Need for a Frame, or no Frame?

2008-02-18 Thread Eric Brunel
On Sun, 17 Feb 2008 13:31:47 +0100, W. Watson <[EMAIL PROTECTED]> wrote: > Thanks very much. I'm somewhat new to this, but I would think that Frame > might carry some properties not available to the root. If so, then there > might be some advantage to it. (Please don't top-post... It makes t

Re: Tkinter OSX and "lift"

2008-02-22 Thread Eric Brunel
On Thu, 21 Feb 2008 16:53:14 +0100, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Miki wrote: >> Hello Kevin, >> >>> Tk.lift doesn't seem to work on OSX (Python 2.5.1). If you click on the PythonLauncher application that runs in your dock when this script is executed, the window comes into

Re: Tkinter Menu Item Activation

2008-02-26 Thread Eric Brunel
On Fri, 22 Feb 2008 13:30:06 +0100, <[EMAIL PROTECTED]> wrote: [snip] > Sub problems: how to change state of menu item? how to detect changes > in Text widget? If you have a reasonably recent tcl/tk version (>= 8.4), you should have a edit_modified() method on your Text telling you if it has bee

Green's Function

2008-03-08 Thread olusina eric
Hi All, I am new to Python and trying to solve the Hamiltonian of a linear chair of atoms using green’s function. Does anyone know any pre-existing library functions and literature that could be helpful? Thanks EOF - Looking for last minute shopp

Re: Green's Function

2008-03-08 Thread olusina eric
I did search for "Python Green's function" and no reasonable hit. I also searched on scipy with no result. Thanks EOF olusina eric <[EMAIL PROTECTED]> wrote: Hi All, I am new to Python and trying to solve the Hamiltonian of a linear chain of atoms using gree

Installing Python2.4 on RHEL4?

2008-03-14 Thread Eric B.
x64? If there is a better place to be asking this question, please let me know, and I will redirect my queries elsewhere. Thanks so much. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python2.4 on RHEL4?

2008-03-14 Thread Eric B.
"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric B. pisze: > >> I appologize if this is slightly OT, but I am really struggling to figure >> out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4 >> machine

Cannot build Python 2.4 SRPM on x64 platform

2008-03-16 Thread Eric B.
through these problems in the future. Any hints / ideas / suggestions / guidance that anyone can provide would amazing, because I'm completely out of ideas at this point. Like I said, I'm trying to build this on a RHEL4 x64 system, with all latest updates. Thanks so much! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Cannot build Python 2.4 SRPM on x64 platform

2008-03-16 Thread Eric B.
nfig script doesn't build for 64bit platforms. Do I need to pass any particular arguments to the ./configure script and/or the make/make install commands in order to ensure this being built for 64bits? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance question

2008-03-25 Thread Eric Brunel
On Tue, 25 Mar 2008 16:37:00 +0100, Brian Lane <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Gerard Flanagan wrote: > >> Use the child class when calling super: >> >> -- >> class Foo(object): >> def __init__(self): >>

Re: Tkinter menus from keyboard

2008-03-26 Thread Eric Brunel
On Wed, 26 Mar 2008 13:45:29 +0100, Guilherme Polo <[EMAIL PROTECTED]> wrote: > 2008/3/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> Tkinter defaults to, for example, Alt+f = File (if File is your first >> menu name starting with "f"). >> >> I'd like to assign my own letters and have them unde

Possible bug in Tkinter - Python 2.6

2009-01-15 Thread Eric Brunel
Hi all, I found a behaviour that might be a bug in Tkinter for Python 2.6. Here is the script: - from Tkinter import * from tkMessageBox import * from tkFileDialog import * root = Tk() def ask_file(): file_name = askopenfilename() print file_name def ask_con

Re: Possible bug in Tkinter - Python 2.6

2009-01-16 Thread Eric Brunel
On Thu, 15 Jan 2009 19:09:00 +0100, José Matos wrote: On Thursday 15 January 2009 15:28:36 r wrote: First of all be very careful using from "module" import * or you will have name conflicts. Tkinter is made to be imported this way and i do it all the time. for the others do. import tkMessageB

Re: Possible bug in Tkinter - Python 2.6

2009-01-16 Thread Eric Brunel
On Thu, 15 Jan 2009 23:49:22 +0100, Terry Reedy wrote: Eric Brunel wrote: [snip]>> And BTW, if this is actually a bug, where can I report it? bugs.python.org Thanks. I reported the problem. -- python -c "print ''.join([chr(154 - ord(c)) for c in 'U(17zX(%,5.

Re: Possible bug in Tkinter - Python 2.6

2009-01-19 Thread Eric Brunel
On Fri, 16 Jan 2009 17:49:50 +0100, Terry Reedy wrote: Eric Brunel wrote: On Thu, 15 Jan 2009 23:49:22 +0100, Terry Reedy wrote: Eric Brunel wrote: [snip]>> And BTW, if this is actually a bug, where can I report it? bugs.python.org Thanks. I reported the problem. When you

Re: Possible bug in Tkinter - Python 2.6

2009-01-19 Thread Eric Brunel
On Sun, 18 Jan 2009 01:57:12 +0100, José Matos wrote: On Friday 16 January 2009 09:47:36 Eric Brunel wrote: What do you mean by 'works'...? The usual meaning, I think. :-) Click "Yes" and the program prints True, click "No" and the programs prints "Fa

Swapping values of two variables

2009-01-29 Thread Eric Kang
In python, I set: x=1 y=3 z = x x = y y = z This gave me 3 1, which are the values of x and y swapped. The following would have given me the same result: x, y = y, x But could the swapping be done using less extra memory than this? What is the minimum amount of extra memory required to exch

Adding a positive number and a negative number

2009-01-30 Thread Eric Kang
In two’s complement representation, can adding one positive and one negative give you overflow? -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >