From 0faf45e424b7e08b3dc5145f90ca43fd3c373cf7 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sun, 14 Apr 2024 15:49:10 +0100 Subject: [PATCH] fix: string formatting in --- src/rstk_ext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rstk_ext.rs b/src/rstk_ext.rs index 60f8a77..3e67ad0 100644 --- a/src/rstk_ext.rs +++ b/src/rstk_ext.rs @@ -18,7 +18,7 @@ pub struct Style { impl Style { pub fn update(&self) { rstk::tell_wish(&format!( - "ttk::style layout {} [ttk::style layout {}];", + "ttk::style layout {{{}}} [ttk::style layout {{{}}}];", self.name, self.name )); rstk::tell_wish(&format!( @@ -39,7 +39,7 @@ pub trait TkWidgetExt { impl TkWidgetExt for T { fn style(&self, style: &Style) { - rstk::tell_wish(&format!("{} configure -style {}", self.id(), style.name)); + rstk::tell_wish(&format!("{} configure -style {{{}}}", self.id(), style.name)); } }