Fix for radio button disappearing
Used same logar
This commit is contained in:
parent
aeaf04ed73
commit
4c8722765a
1 changed files with 1 additions and 0 deletions
|
@ -1907,6 +1907,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
|
||||||
variable=element.TKIntVar, value=value, bd=border_depth, font=font)
|
variable=element.TKIntVar, value=value, bd=border_depth, font=font)
|
||||||
if not element.BackgroundColor in (None, COLOR_SYSTEM_DEFAULT):
|
if not element.BackgroundColor in (None, COLOR_SYSTEM_DEFAULT):
|
||||||
element.TKRadio.configure(background=element.BackgroundColor)
|
element.TKRadio.configure(background=element.BackgroundColor)
|
||||||
|
element.TKRadio.configure(selectcolor=element.BackgroundColor)
|
||||||
if text_color is not None and text_color != COLOR_SYSTEM_DEFAULT:
|
if text_color is not None and text_color != COLOR_SYSTEM_DEFAULT:
|
||||||
element.TKRadio.configure(fg=text_color)
|
element.TKRadio.configure(fg=text_color)
|
||||||
element.TKRadio.pack(side=tk.LEFT, padx=element.Pad[0],pady=element.Pad[1])
|
element.TKRadio.pack(side=tk.LEFT, padx=element.Pad[0],pady=element.Pad[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue