Go to advanced search

by DanielVd
Fri Mar 06, 2015 9:28 am
Forum: Python
Topic: TkInter Label Change Font Size by Text Length
Replies: 3
Views: 1284

Re: TkInter Label Change Font Size by Text Length

paddyg wrote:don't know official way but you could do something like

Code: Select all

t = Label(root, text="Accesso Aquafitness")
print(t.winfo_reqwidth(), t.winfo_reqheight())
then pro rata your font size according to constraint.
Thanks, it is exactly what i wanted!
by DanielVd
Fri Mar 06, 2015 8:20 am
Forum: Python
Topic: TkInter Label Change Font Size by Text Length
Replies: 3
Views: 1284

Re: TkInter Label Change Font Size by Text Length

paddyg wrote:don't know official way but you could do something like

Code: Select all

t = Label(root, text="Accesso Aquafitness")
print(t.winfo_reqwidth(), t.winfo_reqheight())
then pro rata your font size according to constraint.
Thanks now i will try!
by DanielVd
Wed Mar 04, 2015 4:09 pm
Forum: Python
Topic: TkInter Label Change Font Size by Text Length
Replies: 3
Views: 1284

TkInter Label Change Font Size by Text Length

Goog morning,

i have a question.
I have a tkinter label with fixed width, in this label i set dynamic text, i need to change font size (decrease or increase) when the text width is longer than label width .
This is an example: Image
by DanielVd
Tue Feb 03, 2015 8:52 am
Forum: Troubleshooting
Topic: TightVNCServer Problems
Replies: 12
Views: 37408

Re: TightVNCServer Problems

michaeljquinn wrote:make sure that the port is correct

try 5901 on the client - not at my pi at the moment,
It works! Thanks man!
by DanielVd
Wed Apr 09, 2014 3:32 pm
Forum: General discussion
Topic: Python Script with form at startup
Replies: 0
Views: 304

Python Script with form at startup

Hi, i'm afraid if i will commit errors on this post, but i'm italian and i don't speak english very well. I'm trying to execute a Python script at startup. This script create a form using tkinter. My PI is configured for booting into command line and not to lxde. I tried adding into rc.local: python...

Go to advanced search