Skip to content

Commit

Permalink
gscreen: remove deprecated use of GtkLabel constructor
Browse files Browse the repository at this point in the history
In detail:
PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor.
  • Loading branch information
hansu committed Sep 19, 2024
1 parent 9319539 commit 781eef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emc/usr_intf/gscreen/gscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3924,7 +3924,7 @@ def restart_dialog_return(self,widget,result,calc):
def _dynamic_tab(self, widget, text):
s = Gtk.Socket()
try:
widget.append_page(s, Gtk.Label(" " + text + " "))
widget.append_page(s, Gtk.Label.new(" " + text + " "))
except:
try:
widget.pack_end(s,True,True,0)
Expand Down

0 comments on commit 781eef7

Please sign in to comment.