Postingan

Menampilkan postingan dengan label tkinter label font size and color

40 tkinter label font size and color

Gambar
tkinter label font size and color im very very new to python and im trying to change the font color of a very basic tkinter gui. what the script does is read a text file and display it in the tkinter gui. then logs the readings to a log file. im just trying to make the text from Data.txt show up red and the background of the gui text box to be black. im using python 2.7 can someone please help me out thanks in advanced,. Python - Tkinter Label - tutorialspoint.com The default is anchor=CENTER, which centers the text in the available space. 2: bg. The normal background color displayed behind the label and indicator. 3: bitmap. Set this option equal to a bitmap or image object and the label will display that graphic. 4: bd . The size of the border around the indicator. Default is 2 pixels. 5: cursor Tkinter Label - Python Tutorial First, import Label class from the tkinter.ttk module. Second, create the root window and set its properties including size, resizeable, and title....