mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added border_color, border_width to configure of CTkFrame
This commit is contained in:
parent
8cafed1b06
commit
0da9a17b55
@ -115,11 +115,21 @@ class CTkFrame(CTkBaseClass):
|
|||||||
|
|
||||||
del kwargs["bg_color"]
|
del kwargs["bg_color"]
|
||||||
|
|
||||||
|
if "border_color" in kwargs:
|
||||||
|
self.border_color = kwargs["border_color"]
|
||||||
|
require_redraw = True
|
||||||
|
del kwargs["border_color"]
|
||||||
|
|
||||||
if "corner_radius" in kwargs:
|
if "corner_radius" in kwargs:
|
||||||
self.corner_radius = kwargs["corner_radius"]
|
self.corner_radius = kwargs["corner_radius"]
|
||||||
require_redraw = True
|
require_redraw = True
|
||||||
del kwargs["corner_radius"]
|
del kwargs["corner_radius"]
|
||||||
|
|
||||||
|
if "border_width" in kwargs:
|
||||||
|
self.border_width = kwargs["border_width"]
|
||||||
|
require_redraw = True
|
||||||
|
del kwargs["border_width"]
|
||||||
|
|
||||||
super().configure(*args, **kwargs)
|
super().configure(*args, **kwargs)
|
||||||
|
|
||||||
if require_redraw:
|
if require_redraw:
|
||||||
|
Loading…
Reference in New Issue
Block a user