Re: VIdeo Converence Software: Tk and thread synchronization

2006-10-03 Thread Eric Brunel
On Mon, 02 Oct 2006 14:42:15 +0200, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: > Hi, > > I am going on writing my video conference software. I wrote the video > grab, code/decode, and netwoark (multicast) transport. > > I have one thread doing this: > > [thread 1] > while True: > for some times:

Re: utf - string translation

2006-11-23 Thread Eric Brunel
On Wed, 22 Nov 2006 22:59:01 +0100, John Machin <[EMAIL PROTECTED]> wrote: [snip] > So why do you want to strip off accents? The history of communication > has several examples of significant difference in meaning caused by > minute differences in punctuation or accents including one of which you

Re: tkFileDialog closes main application

2006-12-21 Thread Eric Brunel
On Wed, 20 Dec 2006 18:37:10 +0100, mdmdmd <[EMAIL PROTECTED]> wrote: > Hello, > > I wish to collect 4 files from a user. So I have decided to use > tkFileDialog askopenfilename. My problem is that after a few file > selections the root window is destroyed (the whole program just > dissapp

Re: an hex number problem

2006-12-21 Thread Eric Brunel
On Thu, 21 Dec 2006 13:33:51 +0100, <[EMAIL PROTECTED]> wrote: > Hello, > I got a number 19968: > > 1. how can I change it to the hex form 0x4e00, '0x%x' % 19968 > 2. and how can I change 0x4e00 to a python unicode character u"\u4e00"? unichr(19968) > thank you! HTH -- python -c "print ''.jo

Re: tkFileDialog closes main application

2006-12-22 Thread Eric Brunel
On Thu, 21 Dec 2006 22:37:37 +0100, James Stroud <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> BTW, why do you create a sub-class of Frame for your application? Why >> not create a sub-class of Tk instead? >> > > The short answer is that inhereting f

Re: Oddities of Tkinter

2006-01-24 Thread Eric Brunel
On 23 Jan 2006 11:28:37 -0800, Tuvas <[EMAIL PROTECTED]> wrote: > I am building a tkinter program. A part of this program is to read data > from an incoming interface, and depending on the data, will display a > bit of text on the tk dialog, it decodes this data, so to speak. If one > command is s

Re: Oddities of Tkinter

2006-01-25 Thread Eric Brunel
On 24 Jan 2006 12:37:01 -0800, Tuvas <[EMAIL PROTECTED]> wrote: > I thought I mentioned that I'm running in linux, and yes, there are > threads involved. I just don't know why on one machine that it would > run so differently than another. The only secure way I found to make Tkinter mix with threa

Re: Tkinter listener thread?

2006-01-27 Thread Eric Brunel
On Thu, 26 Jan 2006 17:32:32 +, Steve Holden <[EMAIL PROTECTED]> wrote: > gregarican wrote: >> I have a Python UDP listener socket that waits for incoming data. The >> socket runs as an endless loop. I would like to pop the incoming data >> into an existing Tkinter app that I have created. W

Re: Marked-Up Text Viewer for Python/Tkinter

2006-01-31 Thread Eric Brunel
On Mon, 30 Jan 2006 15:20:50 -0800, James Stroud <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm wondering if there is something that already exists that can take > marked up text in some format (hopefully reStructuredText or HTML) and > can convert it into something that can be displayed with

Re: Getting Tkinter Text contents before destruction

2006-02-09 Thread Eric Brunel
On Mon, 6 Feb 2006 20:11:28 -0700, Bob Greschke <[EMAIL PROTECTED]> wrote: > Hi! > > I want to grab the contents of a Text widget when the frame it's on gets > destroyed. I tried TextWidget.bind(""... , but the widget is > gone > before the call gets made, and I'd really hate to do something wi

Re: Getting Tkinter Text contents before destruction

2006-02-09 Thread Eric Brunel
On Mon, 06 Feb 2006 19:32:52 -0800, James Stroud <[EMAIL PROTECTED]> wrote: > If TextWidgetsFrame inherets from frame, you can override the destroy() > method which gets called when the parent gets destroyed. Unfortunately, it doesn't get called. Everything actually happens at tk level, where

Re: Tkinter slowes down

2005-05-30 Thread Eric Brunel
On Sat, 28 May 2005 18:21:46 +0200, pavel.kosina <[EMAIL PROTECTED]> wrote: > Fredrik Lundh napsal(a): >> when you add an item to the canvas, it's part of the canvas >> until you remove it. if performance drops, it's usually because >> you keep adding new items without removing the old ones. >> >

Re: Fast text display?

2005-06-08 Thread Eric Brunel
On Thu, 09 Jun 2005 02:22:08 +0200, Riccardo Galli <[EMAIL PROTECTED]> wrote: > Using tkinter doesn't need downloading and installing only in Windows. > In *nix is not so common to have tcl/tk installed (and probably in Mac too) > > GUI cross platform need external support, in a OS or in another.

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 con

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 tkMessa

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 titl

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

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

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

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 >

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 listboxes

2007-05-04 Thread Eric Brunel
On Fri, 04 May 2007 05:26:56 +0200, <[EMAIL PROTECTED]> wrote: > I will give a simplified example of the problem at hand -- > > I have a case in which I have two listboxes - listbox1 and listbox2, > if I click on an item in listbox1 the item gets highlighted as > expected. Now if I click on an ite

Re: tkinter - Screen Resolution

2007-05-10 Thread Eric Brunel
On Wed, 09 May 2007 18:37:32 +0200, <[EMAIL PROTECTED]> wrote: > Hi, > I have developed a GUI using tkinter (grid geometory manager). > The structure is a top frame containing multiple subframes. Each > subframe has a combination of widgets like(Entry, label, > button,listboxes). The subframes are

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Sun, 13 May 2007 21:10:46 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: [snip] > Now, I am not a strong supporter (most public code will use English > identifiers anyway) How will you guarantee that? I'm quite convinced that most of the public code today started its life as private code e

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Sun, 13 May 2007 23:55:11 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Martin v. Löwis a écrit : >> PEP 1 specifies that PEP authors need to collect feedback from the >> community. As the author of PEP 3131, I'd like to encourage comments >> to the PEP included below, either here (

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> On Sun, 13 May 2007 21:10:46 +0200, Stefan Behnel >> <[EMAIL PROTECTED]> wrote: >> [snip] >>> Now, I am not a strong supporter (most public co

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Mon, 14 May 2007 12:17:36 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel >>> Any chance there are still kanji-enabled programmes around that were >>> not hit >>> by the bomb

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

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 07:15:21 +0200, ZeD <[EMAIL PROTECTED]> wrote: > Neil Hodgson wrote: > >> Ada 2005 allows Unicode identifiers and even includes the constant >> '?' in Ada.Numerics. ^^^ > this. is. cool. Yeah, right... The problems begin... Joke aside, this just means that I won't eve

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth <[EMAIL PROTECTED]> wrote: > Recently there has been quite a bit of publicity about the One Laptop Per > Child project. The XO laptop is just beginning rollout to children and > provides two main programming environments: Squeak and Python. It is a

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 11:25:50 +0200, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Eric Brunel (Tue, 15 May 2007 10:52:21 +0200) >> On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth >> <[EMAIL PROTECTED]> wrote: >> > Recently there has been quite a bit of pub

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 14:14:33 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > René Fleschenberg wrote: >> Please try to understand that the fact that certain bad practices are >> possible today is no valid argument for introducing support for more of >> them! > > You're not trying to suggest tha

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 15:57:32 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: >> After 175 replies (and counting), the only thing that is clear is the >> controversy around this PEP. Most people are very strong for or >> against it, with little middle ground in between. I'm

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

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 eve

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 h

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 Eng

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2009-02-12 Thread Eric Brunel
On Thu, 12 Feb 2009 06:06:06 +0100, 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: http://www.tcl.tk/software/tcltk/8.5.tml under 'Highlig

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

Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Eric Brunel
On Tue, 16 Dec 2008 10:00:32 +0100, Gabriel Genellina wrote: En Mon, 15 Dec 2008 14:29:31 -0200, cmdrrickhun...@yaho.com escribió: PS. In my opinion the solution would be to have the option of entering a "whitespace insensitive" mode which uses C style {} and ;. The token to enter it co

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 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 Tk first? If I put

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 im

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 ca

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

<    1   2   3   >