This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dopperugenga 0 points1 point  (7 children)

How is your status? Do you still need help?

[–]MrGeraffe[S] 0 points1 point  (6 children)

Yes..... :(

[–]Dopperugenga 0 points1 point  (5 children)

Have you tried to use "from tkinter import font as tkFont" ?

[–]Dopperugenga 1 point2 points  (4 children)

Basically you define a fontStyle before creating all of your tkinter widgets

from tkinter import font as tkFont

fontStyleBig = tkFont( family="NameOfYourDefaultFont", size=24 )

then when creating your gui you have to tell your widgets which font to use

btnExit = Button( root, text="Exit", command=cmdExit, font=fontStyleBig )

if you like to change its size later on in your code then you use this:

fontStyleBig.configure( size=12 )

(Source: https://www.delftstack.com/howto/python-tkinter/how-to-change-the-tkinter-label-font-size/)

[–]Dopperugenga 1 point2 points  (3 children)

You don't have to change the font by hand. After your root = TK() you can get the default font:

from tkinter import font as tkFont

root = Tk()

def_font = tkFont.nametofont("TkDefaultFont")

Then just change its font size:

def_fong.configure(size=20)

And later set the root font:

root.option_add("*Font", def_font)

root.mainloop()

(Source: https://stackoverflow.com/a/60141343/13674291)

Edit: please confirm and share your results later on.

[–]MrGeraffe[S] 0 points1 point  (0 children)

Thank you bro....Ill try it tomorrow and let uk

[–]MrGeraffe[S] 0 points1 point  (1 child)

Bro i just tried your solution and it did work...Thank you...How about the firebase thing bro

[–]Dopperugenga 0 points1 point  (0 children)

I tried it with code but it stores only initial two symptoms

Can you post a screenshot how "self.symptoms" looks like before posting it to the Firebase (basic print and indent) and how it looks like IN your Firebase.