Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103404 > unrolled thread

setting the font of the root title

Started bykevind0718@gmail.com
First post2016-02-23 08:30 -0800
Last post2016-02-23 11:45 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  setting the font of the root title kevind0718@gmail.com - 2016-02-23 08:30 -0800
    Re: setting the font of the root title Random832 <random832@fastmail.com> - 2016-02-23 11:45 -0500

#103404 — setting the font of the root title

Fromkevind0718@gmail.com
Date2016-02-23 08:30 -0800
Subjectsetting the font of the root title
Message-ID<fb4cd61f-8267-4f13-9823-16a6d494c663@googlegroups.com>
Hello:

Newbee here.

I need to change the font of the title of the root.
Actually I just need it to be larger, which means I may need the 
top boarder to be larger.

I wrote the bit of code below, hoping for the desired effect.
Also googled around regarding the toplevel widget
No luck.

Your kind assistance is requested.


from  Tkinter   import * 
import tkFont

root = Tk( )
root.option_add("*font, ", "Times 16")
root.title("Database Logon Info")
w = Label(root, text="Hello World")

w.pack()

root.mainloop()

[toc] | [next] | [standalone]


#103405

FromRandom832 <random832@fastmail.com>
Date2016-02-23 11:45 -0500
Message-ID<mailman.70.1456245959.20994.python-list@python.org>
In reply to#103404
On Tue, Feb 23, 2016, at 11:30, kevind0718@gmail.com wrote:
> Hello:
> 
> Newbee here.
> 
> I need to change the font of the title of the root.
> Actually I just need it to be larger, which means I may need the 
> top boarder to be larger.
> 
> I wrote the bit of code below, hoping for the desired effect.
> Also googled around regarding the toplevel widget
> No luck.

Generally the title bar and window border is provided by the window
manager or operating system and therefore its appearance is not under
the control of your program.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web