Hi everyone. I am currently learning to use themes or skins for ttk controls on a PC with Ubuntu.
The code I attached, place a vertical and horizontal panedwindow control. The theme I use is 'clam'. CODE:================================================================== #! /usr/bin/env python # -*- encoding: utf-8 -*- import Tkinter import ttk class App: def __init__(self, master): self.root = master # FRAME_MASTER-------------------------------------------------- self.frame_master = ttk.Frame(self.root, style='TFrame') self.frame_master.pack(fill="both", expand='yes') # PANED_H------------------------------------------------------- self.paned_h = ttk.Panedwindow(self.frame_master, orient='horizontal', style='TPanedwindow', ) self.paned_h.pack(fill='both', expand='yes') # PANED_V------------------------------------------------------- self.paned_v = ttk.Panedwindow(self.paned_h, orient='vertical', style='v.TPanedwindow') self.paned_v.pack(fill='both', expand='yes') # TREEVIEW------------------------------------------------ self.frame_treeview = ttk.Frame(self.paned_v) self.frame_treeview.pack(fill='both', expand='yes') # FRAME_TEXTEDITOR---------------------------------------------- self.frame_texteditor = ttk.Frame(self.paned_v) self.frame_texteditor.pack(fill='both', expand='yes') self.paned_v.add(self.frame_treeview) self.paned_v.add(self.frame_texteditor) # FRAME--------------------------------------------------------- self.frame_v = ttk.Frame(self.paned_h, style='frame_v.TFrame') self.frame_v.pack(fill='both', expand='yes') self.paned_h.add(self.paned_v) self.paned_h.add(self.frame_v) self.root.wait_visibility(self.root) self.root.update_idletasks() self.paned_h.sashpos(0,200) self.paned_v.sashpos(0,400) master = Tkinter.Tk() #THEME-------------------------------------------------------------- s = ttk.Style() s.theme_use('clam') s.configure('frame_v.TFrame', background='#EFEBE7') s.configure('TFrame', background='#EFEBE7') s.configure('TPanedwindow', background='#EFEBE7') # MAXIMIZED WINDOW master.attributes('-zoomed',1) app = App(master) master.mainloop() PROBLEM:================ When you run the program first and then draw the controls are applied to the selected topic. The problem that occurs is that the color you have selected is different from that comes with the theme 'clam', which is gray. Because of this, there is a flicker when the subject applies to controls. There any way to avoid this flicker. Thanks in advance.! Regards. Cristian AbarzĂșa F. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss