Re: Set initial size in TKinter

2011-12-20 Thread Eric Brunel
In article mailman.3861.1324379384.27778.python-l...@python.org, Gabor Urban urbang...@gmail.com wrote: Hi, I am quite newbie with Tkinter and I could not find the way to set the size of the application. (I could find the method to make it resizeable, though :-)) ) Any ideas, suggestions or

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article iJg5p.198317$mg5.147...@en-nntp-06.dc1.easynews.com, Doug Epling wde...@mikrotec.com wrote: hey, does anyone find the UML useful during Python development of larger projects? Well, UML being very Java/C++ oriented, I found out that Python idioms were really difficult to represent

Re: How does IDLE do it?

2011-02-16 Thread Eric Brunel
In article mailman.88.1297395660.1633.python-l...@python.org, Richard D. Moores rdmoo...@gmail.com wrote: I recently wrote some code that prints information about the 'jukugo' used in Japanese newspaper articles. A jukugo is a Japanese word written with at least 2 kanji. An example of a

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article 6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com, RJB rbott...@csusb.edu wrote: On Feb 16, 12:48 am, Eric Brunel eric.bru...@pragmadev.nospam.com wrote: In article iJg5p.198317$mg5.147...@en-nntp-06.dc1.easynews.com,  Doug Epling wde...@mikrotec.com wrote

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
In article mailman.185.1291395907.2649.python-l...@python.org, craf p...@vtr.net wrote: Hi. I use Python 3.1 and Tkinter.ttk 8.5 on Ubuntu 9.10. CODE: module:FMain.py from tkinter import ttk from FSecondWindow import * class

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
In article mailman.346.1291897180.2649.python-l...@python.org, pyt...@bdurham.com wrote: Eric, Besides style support, what are the advantages of ttk.Frame vs. Tkinter.Frame? I'd say none. They are both just containers for other widgets, support the same layout managers, and so on. For me,

Re: Decorate un Frame with window managers title bar, etc en Tkinter 8.5

2010-12-02 Thread Eric Brunel
In article mailman.101.1291218554.2649.python-l...@python.org, craf p...@vtr.net wrote: Hi. I use python 3.1 and Tkinter 8.5 in Ubuntu 9.10 I would like to turn a frame into a toolbox, ,and for that I read that you can use the command wm manage (window) The information can be found

Re: Unix-head needs to Windows-ize his Python script

2010-10-21 Thread Eric Brunel
In article mailman.70.1287598236.2218.python-l...@python.org, Shawn Milochik sh...@milochik.com wrote: Also, wxPython automatically looks native Mac, Windows, and Linux. And so do the recent versions of Tkinter/tcl-tk... In Python, you just have to use the widgets in the new ttk module. These

Re: PyRTF object model

2010-09-30 Thread Eric Brunel
In article mailman.1203.1285848899.29448.python-l...@python.org, Rustom Mody rustompm...@gmail.com wrote: I am trying to use PyRTF. I gather that an RTF doc consists of a list of sections, a section consists of a list of paras, paras seem to be just text (not sure on that one) They also

Re: update of elements in GUI

2010-08-17 Thread Eric Brunel
In article 24dc97b3-a8b5-4638-9cf5-a397f1eae...@q16g2000prf.googlegroups.com, Jah_Alarm jah.al...@gmail.com wrote: hi, I've already asked this question but so far the progress has been small. I'm running Tkinter. I have some elements on the screen (Labels, most importantly) which content

Re: Textvariable display in label (GUI design)

2010-08-17 Thread Eric Brunel
In article ded2beea-2bf9-423d-9457-6b6beb7f7...@n19g2000prf.googlegroups.com, Jah_Alarm jah.al...@gmail.com wrote: On Aug 17, 3:32 am, Eric Brunel eric.bru...@pragmadev.nospam.com wrote: In article 993d9560-564d-47f0-b2db-6f0c6404a...@g6g2000pro.googlegroups.com,  Jah_Alarm jah.al

Re: message box in Tkinter

2010-08-17 Thread Eric Brunel
In article 61cbd1cb-bd6d-49aa-818f-d28c46098...@x18g2000pro.googlegroups.com, Jah_Alarm jah.al...@gmail.com wrote: I need to display a message box at the click of a button. I od the following: from Tkinter import * def msg1(): messagebox.showinfo(message='Have a good day')

Re: update of elements in GUI

2010-08-17 Thread Eric Brunel
(Top-post corrected; please don't do that, it makes messages very hard to read via usenetŠ) In article 26c363c8-11d7-49b9-a1c1-251ab5ff9...@p22g2000pre.googlegroups.com, Jah_Alarm jah.al...@gmail.com wrote: On Aug 17, 7:19 pm, Eric Brunel eric.bru...@pragmadev.nospam.com wrote: You have

Re: how to switch image in tkinter? making it mutable? how?

2010-08-16 Thread Eric Brunel
In article 414ff6dd-73ef-48df-bd2b-080a2c710...@h17g2000pri.googlegroups.com, ChrisChia chrischi...@gmail.com wrote: I have this: image1 = ImageTk.PhotoImage(file = c:\\f1.jpg) image2 = ImageTk.PhotoImage(file = c:\\f2.jpg) imagelist.append(image1) imagelist.append(image2) self.label

Re: Textvariable display in label (GUI design)

2010-08-16 Thread Eric Brunel
In article 993d9560-564d-47f0-b2db-6f0c6404a...@g6g2000pro.googlegroups.com, Jah_Alarm jah.al...@gmail.com wrote: hi, pls help me out with the following issue: I wrote a function that uses a for loop that changes a value of a certain variable each iteration. What I want is by clicking a

Re: Python Tkinter Simple Qn

2010-08-12 Thread Eric Brunel
In article ecd3ebca-8192-445a-a60c-c688b18f4...@i4g2000prf.googlegroups.com, ChrisChia chrischi...@gmail.com wrote: Hi i have the following problem with Python Tkinter. I switch to switch the image background (which i used Tkinter.Label with image arg to display on the GUI). How can I do

Re: __class__ of what

2010-08-12 Thread Eric Brunel
In article 72151646-65cb-47bb-bd55-e7eb67577...@z10g2000yqb.googlegroups.com, Eric J. Van der Velden ericjvandervel...@gmail.com wrote: Hello, I have, class C: n=0 def __init__(s): __class__.n+=1 I do C() This is fine. No it's not, at least

Re: File Manager in Tkinter

2010-08-11 Thread Eric Brunel
In article 770366ta10gk98vgd5n2tapl7ag6ska...@4ax.com, John wrote: My python is version 2.6.5. Would you recomend I upgrade and if yes to which version? from tkinter import ttk Traceback (most recent call last): File pyshell#0, line 1, in module from tkinter import ttk

Re: File Manager in Tkinter

2010-08-10 Thread Eric Brunel
In article d4m1661blus6baj1lrd37j5vk4dau35...@4ax.com, John wrote: As a learning exercise in Tkinter I htought about making a very simple and basic file manager for my own use. I tried searching google for any sample project and could not find anything. Not exactly sure how to start I tought

Re: GNUstep and Python

2009-06-23 Thread Eric Brunel
Diez B. Roggisch wrote: Paul Watson schrieb: Has anyone used GNUstep? In addition to Objective-C, there are Java and Ruby bindings. Has anyone created a Python binding to GNUstep? There is the pyobjc-binding for OSX, maybe that's suitable for GNUStep. Apparently, it's not: There was some

Re: Where to find options for add_command?

2009-04-16 Thread Eric Brunel
Muddy Coder wrote: Hi Folks, When I make Menu, and add in menu items, by using add_command, such as: menuObj.add_command(label='Open File', command=self.open_file) It works. But, I want to make the GUI looking better. So, I want to change color, font, size, background, for the label of

Re: How can I change size of GUI?

2009-04-07 Thread Eric Brunel
Muddy Coder wrote: Hi Folks, I copied code from book: class ScrolledText(Frame): def __init__(self, parent=None, text='', file=None): Frame.__init__(self, parent) self.pack(expand=YES, fill=BOTH) self.makeWidgets() self.settext(text, file) def

Re: PIL\Tkinter and Transparencies, Rubber Lines, and Dragging Image Objects

2009-04-07 Thread Eric Brunel
W. eWatson wrote: Basically, I'd like to know how one (broadly, e.g., references in Win-land) does IP (image processing) and drawing techniques such as rubber lines, and dragging image objects across the canvas. I know there are some pretty powerful toolkits out there, but I'd like to limit

Re: Help for Toplevel

2009-04-02 Thread Eric Brunel
Muddy Coder wrote: Hi Folks, I have a problem of handling Toplevel window. Basically, I wrote a listbox viewer with scrollbars, and saved in file listbo.py. Then in my main GUI window, with menu, I need to launch the listbox viewer, in a new window. Obviously, a Toplevel window is needed.

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: [snip] PS If you were also offering an answer to the second question, I missed it altogether, but although it is perhaps slightly less obvious than with a StringVar, I would ask the same basic question of an IntVar: why does it not behave more like an int? E.g., why is

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? I'll let someone else answer this as I don't use Python 3 myself. I guess there are not many. 2. What exactly is the role of the root

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: [snip] On 3/30/2009 3:37 AM Eric Brunel apparently wrote: The Tk instance is registered in a hidden variable in the Tkinter module. When you don't specify a master, it'll use the latest created Tk instance one by default. BTW, the latest should be the only one: it is quite

Re: Threading and tkinter

2009-03-27 Thread Eric Brunel
(Sorry: replying to the wrong message here, but my newsreader somehow managed to miss the former post...) On Mar 7, 9:40 am, Jani Hakala jahak...@iki.fi wrote: After reading the docs and seeing a few examples i think this should work ? Am I forgetting something here or am I doing something

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Eric Brunel
Mr. Z wrote: I'm trying emulate a printf() c statement that does, for example char* name=Chris; int age=30; printf(My name is %s, name); printf(My name is %s and I am %d years old., %s, %d); In other words, printf() has a variable arguement list the we all know. I'm trying to do this in

Re: tkinter: loading file before entering mainloop

2009-03-16 Thread Eric Brunel
Peter Billam wrote: Peter Billam wrote: window = MainWindow(application) if (len(sys.argv) 1) and os.path.exists(sys.argv[1]): window.loadFile(sys.argv[1]) application.mainloop() File ./midimix, line 465, in loadFile space0.grid(row=grid_row,

Re: tkinter icons as bytestrings, not files?

2009-02-24 Thread Eric Brunel
On Tue, 24 Feb 2009 05:56:12 +0100, Peter Billam pe...@www.pjb.com.au wrote: Greetings, As a newbie, starting with Python3, I'm working my way through Mark Summerfield's tkinter examples. In the toolbar, there's lines like: for image, command in ( ('images/filenew.gif',

Re: Thank you, Tkinter. (easy to use)

2009-02-12 Thread Eric Brunel
On Thu, 12 Feb 2009 06:06:06 +0100, argo...@gmail.com wrote: [snip] My only (minor) complaint is that Tk doesn't draw text antialiased in the various widgets (menus, labels, buttons, etc.). From version 8.5 of tcl/tk, it's supposed to do it. See this page:

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 tjre...@udel.edu wrote: Eric Brunel wrote: On Thu, 15 Jan 2009 23:49:22 +0100, Terry Reedy tjre...@udel.edu wrote: Eric Brunel wrote: [snip] And BTW, if this is actually a bug, where can I report it? bugs.python.org Thanks. I reported

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 jama...@fc.up.pt 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 False

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 jaoma...@gmail.com 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.

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 tjre...@udel.edu 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.zmz5(17l8(%,5.Z

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

Re: State of the art: Tkinter, Tk 8.5, Tix?

2009-01-08 Thread Eric Brunel
On Wed, 07 Jan 2009 20:31:23 +0100, excord80 excor...@gmail.com wrote: Does Python work with Tk 8.5? I'm manually installing my own Python 2.6.1 (separate from my system's Python 2.5.2), and am about to install my own Tcl/Tk 8.5 but am unsure how to make them talk to eachother. Should I install

Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Eric Brunel
On Tue, 16 Dec 2008 10:00:32 +0100, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 15 Dec 2008 14:29:31 -0200, cmdrrickhun...@yaho.com conrad.am...@gmail.com escribió: PS. In my opinion the solution would be to have the option of entering a whitespace insensitive mode which uses

Re: Tkinter and asyncronous socket

2008-11-27 Thread Eric Brunel
On Fri, 28 Nov 2008 04:20:22 +0100, Hendrik van Rooyen [EMAIL PROTECTED] wrote: If you are not already doing it, you need to make a stutter thread by using the after() call on some gui object to periodically check for input on the queue. You don't need to in fact: from the secondary thread,

Build of extension module depending on external lib fails on Solaris 10

2008-11-21 Thread Eric Brunel
Hello all, I've got a brand new Solaris 10 computer and I'm trying to build Python and extension modules for it. The Python build didn't have any problem and I have a working Python interpreter. But I can't succeed to build extension modules depending on external libraries: The compilation

Re: Possible bug in Tkinter for Python 2.6

2008-11-20 Thread Eric Brunel
On Wed, 19 Nov 2008 18:51:03 +0100, Terry Reedy [EMAIL PROTECTED] wrote: Anton Vredegoor wrote: On Wed, 19 Nov 2008 10:57:53 +0100 Eric Brunel [EMAIL PROTECTED] wrote: I'm trying out Python 2.6 and I found what might be a bug in the Tkinter module. How can I report it? maybe here: http

Possible bug in Tkinter for Python 2.6

2008-11-19 Thread Eric Brunel
Hello all, I'm trying out Python 2.6 and I found what might be a bug in the Tkinter module. How can I report it? The possible bug is a traceback when trying to delete a menu item in a menu where no items have associated commands. For example: -- from Tkinter

Re: tkinter textwidget problem

2008-10-03 Thread Eric Brunel
On Thu, 02 Oct 2008 21:57:01 +0200, kib2 [EMAIL PROTECTED] wrote: Hi, In a tkinter TextWidget I would like to retrieve the last typed word. I've tried this with the 'wordstart' Expression [From the effbot site, wordstart and wordend moves the index to the beginning (end) of the current

Re: Python is slow?

2008-09-24 Thread Eric Brunel
On Tue, 23 Sep 2008 15:23:12 +0200, sturlamolden [EMAIL PROTECTED] wrote: [...] Would it be possible to post this text to some persistent web page with (links to) the code you wrote in both languages? This would be a very interesting resource for people experiencing some resistence when

Re: Tkinter Unix and Windows incompatibility

2008-08-27 Thread Eric Brunel
On Wed, 27 Aug 2008 06:50:30 +0200, akineko [EMAIL PROTECTED] wrote: Hello everyone, I'm trying to create custom Tkinter/Pmw widgets for my project. After testing my widgets under Unix (Solaris), I have tried them under Windows and I got a surprise. The widgets came out differently. The

Re: Handling Property and internal ('__') attribute inheritance and creation

2008-08-19 Thread Eric Brunel
On Fri, 15 Aug 2008 20:02:36 +0200, Rafe [EMAIL PROTECTED] wrote: [snip] 1) 'Declaring' attributes - I always felt it was good code practice to declare attributes in a section of the class namespace. I set anything that is constant but anything variable is set again in __init__(): Class

Re: Tkinter updates - Easiest way to install/use Tile?

2008-08-14 Thread Eric Brunel
On Wed, 13 Aug 2008 19:10:47 +0200, Mudcat [EMAIL PROTECTED] wrote: [snip] I was reading about Tile, and it sounds like I should be able to wrap a style around my current code to give it a different look. However it doesn't sound like it's quite ready for prime time yet. I downloaded the latest

Re: Tkinter tab focus traversal causes listbox selection to clear, ie, lose the selected item

2008-08-14 Thread Eric Brunel
On Thu, 14 Aug 2008 04:49:51 +0200, Gerardo ARnaez [EMAIL PROTECTED] wrote: Hi. I am writing a program to help determine coumadin regimens to look at the code: http://sourceforge.net/projects/coumadinregimen/ The issue is that I have a variable that I want the use to select if they don't

Re: Second python program: classes, sorting

2008-08-11 Thread Eric Brunel
Others have replied to your original question. As an aside, just a few stylistic notes: class Score: def __init__(self, name_, score_): self.name = name_ self.score = score_ These trailing underscores look like a habit from another language. They are unneeded in

Re: Tkinter Entry widgets 'font' property (API ?) changed in Python 2.5.2 ?

2008-08-06 Thread Eric Brunel
On Wed, 06 Aug 2008 06:01:59 +0200, Atul [EMAIL PROTECTED] wrote: Hi, The snippet : entryFontDescr = Entry()[font] print self.entryFontDescr On Windows XP it displays {MS Sans Serif} 8 On Suse Linux 10.2 it used to display TkTextFont 10 I upgraded to OpenSuse 11 and now it shows

Re: tkinter, loading image error, TclError: couldn't recognize data in image file C:/users/me/desktop/images/blob4.jpg

2008-06-30 Thread Eric Brunel
On Sun, 29 Jun 2008 13:34:37 +0200, defn noob [EMAIL PROTECTED] wrote: from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file = 'C:/users/saftarn/desktop/images/blob4.jpg')

Re: inheritance question...

2008-06-23 Thread Eric Brunel
Preamble: when posting a brand new question, you'd better not replying to an existing completely unrelated message. In most viewers, this will cause your message to appear in the thread for the original question and far less people will see it. So better create a brand new thread. On Fri,

Re: Simple TK Question - refreshing the canvas when not in focus

2008-05-02 Thread Eric Brunel
On Wed, 30 Apr 2008 20:19:32 +0200, blaine [EMAIL PROTECTED] wrote: On Apr 30, 10:41 am, Peter Otten [EMAIL PROTECTED] wrote: blaine wrote: Still doesn't work. I'm looking into using wx instead... This is the full code - does it work for anyone else? Just do a echo 'line 0 0 10 10'

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread Eric Brunel
On Tue, 29 Apr 2008 17:09:18 +0200, blaine [EMAIL PROTECTED] wrote: [snip] I'll try the update() again. I would want to use that on the canvas itself right? Not the root window? Well, in fact, there is no difference at all... In tcl/tk, update is a function, and isn't applied to a

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread Eric Brunel
On Wed, 30 Apr 2008 10:58:06 +0200, Robert.Spilleboudt [EMAIL PROTECTED] wrote: blaine wrote: Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-29 Thread Eric Brunel
On Tue, 29 Apr 2008 15:22:12 +0200, blaine [EMAIL PROTECTED] wrote: Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is well, except one thing. When

Re: Learning Tkinter

2008-04-17 Thread Eric Brunel
On Wed, 16 Apr 2008 14:46:13 +0200, Doran, Harold [EMAIL PROTECTED] wrote: [snip] Second, I am trying to work through a couple of the examples and make some small tweaks as I go to see how new things can work. In the first case, I have copied the code in the book to see how the menu works and

Re: 答复: how to remove \n in the list

2008-04-14 Thread Eric Brunel
(please avoid top-posting... corrected) On Mon, 14 Apr 2008 09:08:06 +0200, Penny Y. [EMAIL PROTECTED] wrote: -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Gabriel Genellina 发送时间: 2008年4月14日 12:59 收件人: python-list@python.org 主题: Re: how to remove \n in the list En

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 underscored, per

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): self.id = 1

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 been

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

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

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 'Key' 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: 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 space

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 stdout

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 means what you think it means... ;-) Does that mean you pronounce

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 URL:http://www.boingboing.net/2007/10/16/french-lady-finds-py.html. I do believe that Python should be somewhat more

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 toolkit,

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: 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 double take* are you

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 window - like

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 in some

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

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='Hello

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', 'b']

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

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

Re: Choosing Tkinter over wxPython...

2007-07-10 Thread Eric Brunel
On Mon, 09 Jul 2007 23:08:20 +0200, Kevin Walzer [EMAIL PROTECTED] wrote: I've spent some time playing with both, and while wxPython is nice, Tkinter just seems to fit my head better, and with appropriate selection of widgets and interface design, seems to yield up perfectly usable

Re: Tkinter toggle a Label Widget based on checkbutton value

2007-07-05 Thread Eric Brunel
On Wed, 04 Jul 2007 21:51:34 +0200, O.R.Senthil Kumaran [EMAIL PROTECTED] wrote: Following is a tk code, which will display a checkbutton, and when checkbox is enabled, it will show the below present Label. What I was trying is, when checkbox is enabled the Label should be shown and

Re: Tkinter pack_forget() and destroy()

2007-06-28 Thread Eric Brunel
On Thu, 28 Jun 2007 07:45:08 +0200, Rajendran Appavu [EMAIL PROTECTED] wrote: When I am done with a widget that is packed in a Frame, is it safe to call destroy() method on the widget after calling its pack_forget() or grid_forget() method? Since I do that all the time, I'd say yes... Did

Re: Tamil/Indian Languages Support in Tkinter

2007-06-13 Thread Eric Brunel
On Tue, 12 Jun 2007 19:32:38 +0200, reverse_gear [EMAIL PROTECTED] wrote: hi, Does Tkinter has support for tamil/Indian Languages?? I tried this code it is able to print both tamil and german text on console.. but on Tkinter Label it is printing only the german code Plz help from Tkinter

Re: Pasting an image from clipboard in Tkinter?

2007-06-12 Thread Eric Brunel
On Mon, 11 Jun 2007 14:23:48 +0200, exhuma.twn [EMAIL PROTECTED] wrote: As many might know, windows allows to copy an image into the clipboard by pressing the Print Screen button on the keyboard. Is it possible to paste such an image from the clipboard into a Text widget in Tkinter? Here is my

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-07 Thread Eric Brunel
On Thu, 07 Jun 2007 09:04:24 +0200, [EMAIL PROTECTED] wrote: [snip] I can't believe there isn't an easier way to make a kiosk application without titlebar. That's not the problem: there *is* an easy way, and you found it: overrideredirect(1). But now you're trying to mix windows ignored by

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread Eric Brunel
On Tue, 05 Jun 2007 18:18:51 +0200, [EMAIL PROTECTED] wrote: Hi everybody. I have this code snippet that shows a window without a titlebar (using overrideredirect) and two buttons on it: one quits and the other one brings up a simple tkMessageBox. On Windows (any flavour) the tkMessagebox

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread Eric Brunel
On Wed, 06 Jun 2007 14:26:12 +0200, [EMAIL PROTECTED] wrote: As an aside, having a window with overrideredirect(1) creating normal windows such as the one created via tkMessageBox.showinfo is asking for problems. What are you trying to do here? I just need a window without the titlebar as my

Re: pack() and the division of vertical space

2007-06-01 Thread Eric Brunel
On Thu, 31 May 2007 19:45:04 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am trying to figure out how to stack two widgets in a frame vertically so that they both expand horizontally and during vertical expansion, the top one sticks to the top of the frame and the bottom one consumes

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 emulate the

Re: tkinter button state = DISABLED

2007-05-18 Thread Eric Brunel
On Thu, 17 May 2007 09:30:57 +0200, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 16 May 2007 03:22:17 -0300, Hendrik van Rooyen I have never seen this working in Tkinter, unless the button was pressed on the widget in question - and

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Tue, 15 May 2007 17:35:11 +0200, Stefan Behnel [EMAIL PROTECTED] wrote: Eric Brunel wrote: On Tue, 15 May 2007 15:57:32 +0200, Stefan Behnel In-house developers are rather for this PEP as they see the advantage of expressing concepts in the way the non-techies talk about it. No: I

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Tue, 15 May 2007 21:07:30 +0200, Pierre Hanser [EMAIL PROTECTED] wrote: hello i work for a large phone maker, and for a long time we thought, very arrogantly, our phones would be ok for the whole world. After all, using a phone uses so little words, and some of them where even

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Wed, 16 May 2007 02:14:58 +0200, Steven D'Aprano [EMAIL PROTECTED] wrote: On Tue, 15 May 2007 09:09:30 +0200, Eric Brunel wrote: Joke aside, this just means that I won't ever be able to program math in ADA, because I have absolutely no idea on how to do a 'pi' character on my keyboard

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Wed, 16 May 2007 12:22:01 +0200, Neil Hodgson [EMAIL PROTECTED] wrote: Eric Brunel: ... there is no keyboard *on Earth* allowing to type *all* characters in the whole Unicode set. My keyboard in conjunction with the operating system (US English keyboard on a Windows XP system

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Wed, 16 May 2007 15:46:10 +0200, Neil Hodgson [EMAIL PROTECTED] wrote: Eric Brunel: Funny you talk about Japanese, a language I'm a bit familiar with and for which I actually know some input methods. The thing is, these only work if you know the transcription to the latin alphabet

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Wed, 16 May 2007 16:29:27 +0200, Neil Hodgson [EMAIL PROTECTED] wrote: Eric Brunel: Have you ever tried to enter anything more than 2 or 3 characters like that? No, only for examples. Lengthy texts are either already available digitally or are entered by someone skilled

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Eric Brunel
On Wed, 16 May 2007 17:14:32 +0200, Gregor Horvath [EMAIL PROTECTED] wrote: Eric Brunel schrieb: Highly improbable in the general context. If I stumble on a source code in Chinese, Russian or Hebrew, I wouldn't be able to figure out a single sound. If you get source code

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Mon, 14 May 2007 18:30:42 +0200, [EMAIL PROTECTED] wrote: [snip] Can a discussion about support for non-english identifiers (1) conducted in a group where 99.9% of the posters are fluent speakers of english (2), have any chance of being objective or fair? Agreed. Although probably

  1   2   3   >