Skip to content

Commit

Permalink
fix: string formatting in
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad committed Apr 14, 2024
1 parent 87751f9 commit 0faf45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rstk_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand All @@ -39,7 +39,7 @@ pub trait TkWidgetExt {

impl<T: TkWidget> 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));
}
}

Expand Down

0 comments on commit 0faf45e

Please sign in to comment.