How to set background for a frame
john157157 opened this issue · 2 comments
john157157 commented
For widgets that don't have background color as a NativeAttribute, like for instance Frames, how can that be set?
52LY commented
Give it a try, I'm not sure if this will solve your problem.
mw := tk.RootWindow()
frame := tk.NewFrame(mw, tk.WidgetAttrInitUseTheme(false)) // use tk::frame, default : use ttk::frame
frame.SetNativeAttribute("background", "black")
john157157 commented
tk.WidgetAttrInitUseTheme(false) is the magic sauce. I'm back in business. Thank you so much!