Re: Tkinter Text Widget Background Color

2011-02-22 Thread Jeff Hobbs
On Feb 22, 8:48 am, Terry Reedy wrote: > On 2/22/2011 6:50 AM, Peter Otten wrote: > > > import Tkinter as tk > > from itertools import cycle > > > root = tk.Tk() > > text = tk.Text(root, font=("Helvetica", 70)) > > text.pack() > > > text.insert(tk.END, "Hello, geocities") > > text.tag_add("initial

Re: Python 2.7

2010-11-08 Thread Jeff Hobbs
On Nov 8, 3:50 am, Felipe Bastos Nunes wrote: > Install the python 2.6.x :-) > > 2010/11/8, Antonio de Haro Millan : > > > I can not install "*Python Imaging Library 1.1.7 for Python 2.6* (Windows > > only)" > > because I have the *Python 2.7. *A solution please... If you need Python 2.7, PIL is

Re: Tkinter: Exception RuntimeError: 'maximum recursion depth exceeded'

2010-10-13 Thread Jeff Hobbs
On Oct 13, 2:18 am, o...@dtrx.de (Olaf Dietrich) wrote: > Jeff  Hobbs : > > > > > > > On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote: > > >> After some somewhat heavy mouse action inside the > >> canvas (with the left button pressed), the applic

Re: Tkinter: Exception RuntimeError: 'maximum recursion depth exceeded'

2010-10-12 Thread Jeff Hobbs
On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote: > I have the following (now extremely minimalistic) Tkinter > application: > > --- START > > #! /usr/bin/python2.6 > > import sys > import Tkinter > import numpy > from PIL import Image,

Re: tix problem in ubuntu karmic

2010-09-28 Thread Jeff Hobbs
On Sep 27, 11:30 pm, harryos wrote: > I had been using  jaunty as o.s and was coding in python 2.6. While > using Tix widgets in my code I came across a bug as mentioned in > > https://bugs.launchpad.net/ubuntu/+source/tix/+bug/371720 ... > So ,I  thought upgrading to karmic would help .But even a

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

2010-08-16 Thread Jeff Hobbs
On Aug 16, 7:30 am, ChrisChia 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  = tk.Label(image = imagelist[0]) > > is there a way that i can create a

Re: python strings and {} in Tkinter entry widgets

2010-08-16 Thread Jeff Hobbs
On Aug 15, 4:41 pm, Chris Hare wrote: > I have some code that pulls a value from a database.  In this case, it is > three space delimited words.  When I display the value in a Tkinter.Entry > widget, the text has curly braces around it, even when there are none in the > surrounding the text in

Re: File Manager in Tkinter

2010-08-10 Thread Jeff Hobbs
On Aug 10, 9:43 am, John wrote: > On Tue, 10 Aug 2010 09:20:31 -0700 (PDT), Jeff  Hobbs > > > > wrote: > >On Aug 9, 9:53 pm, John wrote: > >> As a learning exercise in Tkinter I htought about making a very simple > >> and basic file manager for my own use

Re: File Manager in Tkinter

2010-08-10 Thread Jeff Hobbs
On Aug 9, 9:53 pm, 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 I could ask here? > > I thought a

Re: Python 2.7, tkinter problem on OSX

2010-06-25 Thread Jeff Hobbs
On Jun 25, 1:54 am, Julien Pauty wrote: > Last version of my software relies on ttk. Under windows and linux > this is fine. But, OSX users are facing problems (I don't have access > to a Mac myself for testing...). Those with OSX 10.6 can run the > program. It seems that OSX 8.6 ships with Tk8.5.

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 18, 2:59 pm, Ethan Furman wrote: > Jeff Hobbs wrote: > > On Jun 6, 2:11 pm, rantingrick wrote: > >> On Jun 6, 2:06 pm, Mark Lawrence wrote: > >>> On 06/06/2010 16:31, rantingrick wrote: > >>>> On Jun 5, 9:22 pm, ant  wrote: > >>>

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 6, 2:11 pm, rantingrick wrote: > On Jun 6, 2:06 pm, Mark Lawrence wrote: > > On 06/06/2010 16:31, rantingrick wrote: > > > > On Jun 5, 9:22 pm, ant  wrote: > > > >> I ask the group; should we try to create a new GUI for Python, with > > >> the following > > >> properties?: > > > >> - Pytho

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 10, 1:13 am, "Martin v. Loewis" wrote: > > That said, PerlTk didn't use Tcl did it? > > If you are referring tohttp://search.cpan.org/~srezic/Tk-804.028/- > this also has a full Tcl interpreter, in pTk/mTk, and uses Tcl_Interp > and Tcl_Obj throughout. From the Perl/Tk FAQ (*): > > "However

Re: calling python procedures from tcl using tclpython

2005-07-08 Thread Jeff Hobbs
{ import testfile } assuming it's on the module search path. Look in the python docs about Modules to get all the info you need. -- Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos -- http://mail.python.org/mailman/listinfo/python-list

Re: BLT with TCL/TK 8.4.9 and Python 2.4

2005-05-15 Thread Jeff Hobbs
Kenneth Miller wrote: > Has anyone acheived this? There is no reason why Tkinter couldn't load BLT (from the Tcl side). You could wrap it up into a Tkinter-style widget, or just drive it through lower level evals. -- Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a div