some guessing work/suggestion here, resize_to_standard_width() does
ctx = self.get_style_context() size = ctx.get_property("font-size", Gtk.StateFlags.NORMAL)
that's likely to create a "changed" event and trigger the loop
the usual way to fix those is to call GObject.signal_handler_block() before those lines and GObject.signal_handler_unblock() after the lines
you just need to get the right handler in the function to do that
some guessing work/suggestion here, resize_ to_standard_ width() does
ctx = self.get_ style_context( ) property( "font-size" , Gtk.StateFlags. NORMAL)
size = ctx.get_
that's likely to create a "changed" event and trigger the loop
the usual way to fix those is to call signal_ handler_ block() before those lines signal_ handler_ unblock( )
GObject.
and
GObject.
after the lines
you just need to get the right handler in the function to do that