Den fredagen den 25:e januari 2013 kl. 06:57:00 UTC+1 skrev Rick Johnson:
>
> menu = optMenu.nametowidget(optMenu.menuname)
>
That was what I was missing, the '.nametowidget'. It worked like a charm:
o1=Tkinter.OptionMenu(t,v3, "€", "$")
o1.config(font=self.font)
o1.nametowidget(o1.menuname).con
Ignoring the fact that the Tkinter.Optionmenu is by far the worst widget in the
toolkit, not to mention that the whole idea of "Tkinter X_Variables" was a poor
attempt to reuse code at the expense destroying the simple and intuitive
interface of "get" and "set"; here is your answer:
## START
I am changing the font of an OptionMenu widget:
w = OptionMenu(master, variable, "one", "two", "three")
with
w.configure()
That changes the font of the widget but how can I change also the font (size)
of the menu that appears when the mouse clicks it?
Tha
I (Scott David Daniels) wrote:
choha...@gmail.com wrote:
Is there a way to adjust the default font size in IDLE, in MacPython
2.5? The default now is too tiny.
I have to use this version of MacPython. As far as I searched, I can't
find how I do this.
If you can read what you have at all
choha...@gmail.com wrote:
Hi,
Is there a way to adjust the default font size in IDLE, in MacPython
2.5? The default now is too tiny.
I have to use this version of MacPython. As far as I searched, I can't
find how I do this.
Thanks.
If you can read what you have at all, try to go toHelp (o
Hello,
On Sat, Feb 7, 2009 at 4:03 PM, wrote:
Hi,
Is there a way to adjust the default font size in IDLE, in MacPython
2.5? The default now is too tiny.
I have to use this version of MacPython. As far as I searched, I can't
find how I do this.
It is indeed a bug that the options menu do
.
Vincent Davis
On Sat, Feb 7, 2009 at 4:03 PM, wrote:
> Hi,
> Is there a way to adjust the default font size in IDLE, in MacPython
> 2.5? The default now is too tiny.
> I have to use this version of MacPython. As far as I searched, I can't
> find how I do this.
&
Hi,
Is there a way to adjust the default font size in IDLE, in MacPython
2.5? The default now is too tiny.
I have to use this version of MacPython. As far as I searched, I can't
find how I do this.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Same as on all the other platforms.
1. Open IDLE
2. Go Options -> Configure IDLE...
3. Choose the Fonts/Tabs section
4. Use the Size pulldown box
- Chris
On Tue, Sep 2, 2008 at 6:26 AM, Malcolm Lewis <[EMAIL PROTECTED]> wrote:
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 20, 10:12 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Mar 20, 8:20 pm, Carl <[EMAIL PROTECTED]> wrote:
>
> > I've searched the user manual (and this forum) but I don't see
> > anything that helps.
>
> Did you mean the
On Mar 20, 8:20 pm, Carl <[EMAIL PROTECTED]> wrote:
> I've searched the user manual (and this forum) but I don't see
> anything that helps.
Did you mean the font size for the ticks or for
the labels? Here's an example:
from pylab import *
x = arange(0,
I've searched the user manual (and this forum) but I don't see
anything that helps.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your reply but i can't change the font of 'New' label. but
it is a linux problem or is a wxpython problem?
Ghido
--
http://mail.python.org/mailman/listinfo/python-list
Ghido:
Hi all i want to set wx.toolbar font size and i use this code:
self.tb1 = wx.ToolBar(self, -1, style=wx.TB_HORIZONTAL|
wx.TB_TEXT)
self.tb1.SetFont(wx.Font(9, wx.DEFAULT, wx.NORMAL,0))
self.SetToolBar(self.tb1)
but i obtain nothing. Is possibile
Hi all i want to set wx.toolbar font size and i use this code:
self.tb1 = wx.ToolBar(self, -1, style=wx.TB_HORIZONTAL|
wx.TB_TEXT)
self.tb1.SetFont(wx.Font(9, wx.DEFAULT, wx.NORMAL,0))
self.SetToolBar(self.tb1)
but i obtain nothing. Is possibile? where i wrong
Hello all,
I'm writing a windows application with a Tkinter GUI.
Tkinter ignores the Windows user setting for system default font size -
which can be 'normal', 'large' or 'extra large'.
Does anyone know how to retrieve this information from the win32api
Yeah. It works on a Sun and Linux, but not Windows. That stinks. We got a
bunch of 1400x1050 display laptops in and now I have to run around changing
a bunch of programs that looked fine on 1024x768 displays.
Thanks!
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Tk tries to u
Tk tries to use the "native" menu control on Windows (and, I think, MacOS).
One result seems to be that for the application's menu bar you can't change the
font.
Of course, Windows provides a way for users to select a uniform font for
menu bars in all applications, in the Display control panel.
J
Option adding "Menu*font" changes the font size of the _commands,
_radiobuttons, etc., but not the "File", "Edit", etc. labels on the menubar
itself. What is the name for those labels? If I go
Top.add_cascade(Label = "File", menu = Fi, font = "
from random import randint
rand = randint(0,36)
print rand
Don't forget about the double zero slot.
Tobiah
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Fredrik,
I got your program running (with a couple of tweaks) with just a quarter of
an hour to spare before using it at our happy hour yesterday.
The old ladies loved it.
I can now adapt it for bingo.
Thanking you
Adam.
--
http://mail.python.org/mailman/listinfo/python-list
=None):
> for i in range(10):
>label.config(text=str(randint(0,36)))
>label.update()
>sleep(0.05)
>
> # create a maximized window
> root = Tk()
> root.wm_state("zoomed")
> root.title("my roulette wheel")
>
> # 80% of the screen height
wm_state("zoomed")
root.title("my roulette wheel")
# 80% of the screen height
height = int(root.winfo_screenheight() * 0.8)
# create label (use negative font size for size in pixels)
label = Label(root, font="Arial " + str(-height), bg="gold")
label.pack(fill=BO
> >>> Please help me.
> >>> How do you clear the screen and then display a number with an
enlarged
> >>> font
> >>> size (about 300).
> >>> Adam.
> >>
> >> To clear screen in windows :
> >>
> >> #at the
Adam wrote:
We are running a numbers game at our retirement village and using a roulette
wheel to generate the numbers. but this wheel is only about 12 in diameter
and is little more than a toy. So we came up with the idea of using a random
number generator to generate numbers from 0 to 36 and d
Adam wrote:
Here's what I'm trying to do.
We are running a numbers game at our retirement village and using a roulette
wheel to generate the numbers. but this wheel is only about 12 in diameter
and is little more than a toy. So we came up with the idea of using a random
number generator to gener
How do you clear the screen and then display a number with an enlarged
>>> font
>>> size (about 300).
>>> Adam.
>>
>> To clear screen in windows :
>>
>> #at the beggining of the program
>> import os
>>
>> #when you want to cle
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote:
>
>> Please help me.
>> How do you clear the screen and then display a number with an enlarged
>> font
>> size (about 300).
>
On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote:
> Please help me.
> How do you clear the screen and then display a number with an enlarged font
> size (about 300).
> Adam.
To clear screen in windows :
#at the beggining of the program
import os
#when you want to clear the screen
os
"Adam" <[EMAIL PROTECTED]> wrote:
> How do you clear the screen and then display a number with an enlarged font
> size (about 300).
what platform? what screen? 300 what?
--
http://mail.python.org/mailman/listinfo/python-list
Please help me.
How do you clear the screen and then display a number with an enlarged font
size (about 300).
Adam.
--
http://mail.python.org/mailman/listinfo/python-list
32 matches
Mail list logo