Skip to content

Commit

Permalink
fix: string formatting in lib/rstk_ext.rs (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad authored Apr 14, 2024
1 parent 87751f9 commit e7dd187
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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,11 @@ 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 e7dd187

Please sign in to comment.