Save Color Options To A Configuration File - Python Tkinter GUI Tutorial 183

Veröffentlicht am: 29 Juni 2021
auf dem Kanal: John Elder
8,820
254

In this video I'll show you how to save your color selections to a configuration file so that they're available when the program opens later on.


So you've changed the color of the treeview widget, but you want to save those colors to a config file so that they're available the next time you open the program. That's what we'll do in this video.


We'll create a little .ini file that will save our color selections and load them whenever the program runs. We'll also create a reset function to change the colors back to the default.


#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:30 - Create treebase.ini Config File
3:26 - Import ConfigParser
4:03 - Read The Config File And Import Colors
6:51 - Add Imported Colors To Our App
8:09 - Save New Colors To Config File
11:34 - Add Reset Color Function
15:51 - Conclusion


Auf dieser Seite können Sie das Online-Video Save Color Options To A Configuration File - Python Tkinter GUI Tutorial 183 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer John Elder 29 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,820 Mal angesehen und es wurde von 254 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!