Re: Problem With Tkinter Font

2017-02-26 Thread Wildman via Python-list
On Sun, 26 Feb 2017 09:17:00 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> Python 3.4.2 >> Tkinter 8.6 >> Linux >> >> I want to set the font in a GUI program I am working on. >> Here is the pertinent code I am using... >> >> from tkinter import font >> >> myfont = font.Font(f

Re: Problem With Tkinter Font

2017-02-26 Thread Peter Otten
Wildman via Python-list wrote: > Python 3.4.2 > Tkinter 8.6 > Linux > > I want to set the font in a GUI program I am working on. > Here is the pertinent code I am using... > > from tkinter import font > > myfont = font.Font(family='Helvetica', size=10, weight='bold') > > Here is the error I ge

Problem With Tkinter Font

2017-02-25 Thread Wildman via Python-list
Python 3.4.2 Tkinter 8.6 Linux I want to set the font in a GUI program I am working on. Here is the pertinent code I am using... from tkinter import font myfont = font.Font(family='Helvetica', size=10, weight='bold') Here is the error I get... Traceback (most recent call last): File "./test.

Re: problem with Tkinter after installing Python 2.5.2 on UBUNTU

2008-07-08 Thread Jerry Hill
On Tue, Jul 8, 2008 at 12:44 PM, <[EMAIL PROTECTED]> wrote: > I just installed Python 2.5.2 on UBUNTU Linux. It seems to work, > however I don't seem to have access Tkinter. This is the result of > "import Tkinter": I think ubuntu and debian both split Tkinter out of their main python packages.

problem with Tkinter after installing Python 2.5.2 on UBUNTU

2008-07-08 Thread Dogzilla1000
I just installed Python 2.5.2 on UBUNTU Linux. It seems to work, however I don't seem to have access Tkinter. This is the result of "import Tkinter": Python 2.5.2 (r252:60911, Jul 7 2008, 12:39:49) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for

Re: Problem with Tkinter scrollbar callback

2008-01-30 Thread Ivan Van Laningham
HI All-- We've decided that this represents a bug in the tcl/tk library, and there's no workaround. I switched to + and - buttons, which are not as nice aesthetically but work correctly on both Windows & Linux. Thanks to everyone for their help. Metta, Ivan On Jan 29, 2008 11:03 AM, Ivan Van La

Re: Problem with Tkinter scrollbar callback

2008-01-29 Thread Ivan Van Laningham
No Joy. Waits the 1 second, then clicks the button once per second until the limit's reached. Sigh. Metta, Ivan On Jan 29, 2008 10:20 AM, Russell E Owen <[EMAIL PROTECTED]> wrote: > >Nope: > > > >'repeatdelay': ('repeatdelay', 'repeatDelay', 'RepeatDelay', '300', '300'), > > > >And even after I

Re: Problem with Tkinter scrollbar callback

2008-01-29 Thread Ivan Van Laningham
Nope: 'repeatdelay': ('repeatdelay', 'repeatDelay', 'RepeatDelay', '300', '300'), And even after I set it, it looks funny: 'repeatdelay': ('repeatdelay', 'repeatDelay', 'RepeatDelay', '300', '1000'), And when I try it with the new repeatdelay (1000), the only thing that has changed is that it w

Re: Problem with Tkinter scrollbar callback

2008-01-25 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Ivan Van Laningham" <[EMAIL PROTECTED]> wrote: > Hi All-- > That helps. Doing a get() on the scrollbar before a set(0.0,0.0) > returns a 4-tuple: (0.0, 0.0, 0.0, 0.0) ! I did the set(0.0,0.0) > and now the callback gets the correct number of arguments. > > Ho

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Ivan Van Laningham
Hi All-- That helps. Doing a get() on the scrollbar before a set(0.0,0.0) returns a 4-tuple: (0.0, 0.0, 0.0, 0.0) ! I did the set(0.0,0.0) and now the callback gets the correct number of arguments. However, I'm still getting the weird behaviour when clicking the arrowheads--and the heads are a

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Ivan Van Laningham" <[EMAIL PROTECTED]> wrote: > Hi All-- > I'm having two problems with the scrollbar callback on linux systems > (Fedora 7, Suse 10.1,2 and 3 all exhibit the issues). > > Problem one: on Windows, the callback is called with the arguments as > s

Problem with Tkinter scrollbar callback

2008-01-24 Thread Ivan Van Laningham
Hi All-- I'm having two problems with the scrollbar callback on linux systems (Fedora 7, Suse 10.1,2 and 3 all exhibit the issues). Problem one: on Windows, the callback is called with the arguments as specified in the doc: "scroll", "1" or "-1", "units". When I run the identical code on linux,

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
ank you enough. > I'd read about Tkinter "garbage collection", but, like car crashes and > lung cancer, you never think it's going to happen to you... > > thanks once again. > Cheers, Al. > > Fredrik Lundh wrote: > > [EMAIL PROTECTED] wrote: > > >

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
> > > Just having a weird problem with tkinter. I'm trying to make a gui that > > shows results from an image search, with a "forward" and "back" button > > so the user can compare results from different pages. All that's > > working fine... >

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Just having a weird problem with tkinter. I'm trying to make a gui that > shows results from an image search, with a "forward" and "back" button > so the user can compare results from different pages. All that's > working fi

Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
Hi all. Just having a weird problem with tkinter. I'm trying to make a gui that shows results from an image search, with a "forward" and "back" button so the user can compare results from different pages. All that's working fine... The problem I'm having is that

Re: Problem with Tkinter on Mac OS X

2006-05-15 Thread Diez B. Roggisch
Jean Richelle schrieb: > Hello, > > I installed version 2.4.1 (and I tried also with 2.4.3) of Python under > 10.3.9 (and 10.4.6), and I trying to use Tkinter. For simplicity I'm > testing the "hello world" that I found in the documentation. > I first launch IDLE, write (cut and paste from the

Problem with Tkinter on Mac OS X

2006-05-14 Thread Jean Richelle
Hello, I installed version 2.4.1 (and I tried also with 2.4.3) of Python under 10.3.9 (and 10.4.6), and I trying to use Tkinter. For simplicity I'm testing the "hello world" that I found in the documentation. I first launch IDLE, write (cut and paste from the web) the program in an editi

Re: problem with tkinter

2005-03-30 Thread max(01)*
Eric Brunel wrote: On Tue, 29 Mar 2005 22:32:59 +0200, Pierre Quentel <[EMAIL PROTECTED]> wrote: Instead of indexing self.lab by strings, you can index them by the attributes themselves : self.lab[self.i], and change line 23 into for var in (self.s, self,i) I really think this is asking fo

Re: problem with tkinter

2005-03-30 Thread max(01)*
Eric Brunel wrote: On Tue, 29 Mar 2005 22:32:59 +0200, Pierre Quentel <[EMAIL PROTECTED]> wrote: [...] mr brunel, i thank you for prompt reply. i will take my time to read it carefully. meanwhile, i inform you and the ng that someone else gave me a quick and dirty answer to my problem, namely sub

Re: problem with tkinter

2005-03-30 Thread max(01)*
Pierre Quentel wrote: Instead of indexing self.lab by strings, you can index them by the attributes themselves : self.lab[self.i], and change line 23 into for var in (self.s, self,i) For your example, I wouldn't have used the "text" option in the definition of the labels, then "textvariable

Re: problem with tkinter

2005-03-30 Thread Eric Brunel
On Tue, 29 Mar 2005 22:32:59 +0200, Pierre Quentel <[EMAIL PROTECTED]> wrote: Instead of indexing self.lab by strings, you can index them by the attributes themselves : self.lab[self.i], and change line 23 into for var in (self.s, self,i) I really think this is asking for trouble: I suppose t

Re: problem with tkinter

2005-03-29 Thread Pierre Quentel
Instead of indexing self.lab by strings, you can index them by the attributes themselves : self.lab[self.i], and change line 23 into for var in (self.s, self,i) For your example, I wouldn't have used the "text" option in the definition of the labels, then "textvariable" in the callback meth

problem with tkinter

2005-03-29 Thread max(01)*
hello. the following code: 1 from Tkinter import * 2 3 class MiaApp: 4 def __init__(self, genitore): 5 self.mioGenitore = genitore 6 self.i = IntVar() 7 self.i.set(42) 8 self.s = StringVar() 9 self.s.set("Baobab") 10

problem with tkinter

2005-03-29 Thread max(01)*
hello. the following code: 1 from Tkinter import * 2 3 class MiaApp: 4 def __init__(self, genitore): 5 self.mioGenitore = genitore 6 self.i = IntVar() 7 self.i.set(42) 8 self.s = StringVar() 9 self.s.set("Baobab") 10

Re: Problem with tkinter mainloop

2004-11-30 Thread k2riddim
Many thanks, You're right this wasn't my code, this was just what I can remember, because my application is at home, and I'm at work. Be sure I'll follow your advices concerning posting rules in this group ! Eric Brunel <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > k2riddim wr

Re: Problem with tkinter mainloop

2004-11-30 Thread Eric Brunel
k2riddim wrote: Hello, I'm a beginner with Python and Tkinter development. My application parse links in an html file. And I use Tkinter to implement a GUI. This GUI has a button to launch the parse treatment, and a status bar to show the state of the treatment. I know that because of the mainloop,

Problem with tkinter mainloop

2004-11-30 Thread k2riddim
Hello, I'm a beginner with Python and Tkinter development. My application parse links in an html file. And I use Tkinter to implement a GUI. This GUI has a button to launch the parse treatment, and a status bar to show the state of the treatment. I know that because of the mainloop, my tkinter appl