Skip to content

Replace Gtk.Box and Gtk.EventBox direct __init__() calls with super() - #1098

Open
Dakshsharma1108 wants to merge 1 commit into
sugarlabs:gtk4-portfrom
Dakshsharma1108:gtk4-super
Open

Replace Gtk.Box and Gtk.EventBox direct __init__() calls with super()#1098
Dakshsharma1108 wants to merge 1 commit into
sugarlabs:gtk4-portfrom
Dakshsharma1108:gtk4-super

Conversation

@Dakshsharma1108

Copy link
Copy Markdown

Replace Gtk.Box/EventBox init() calls with super()

Replace direct parent class __init__() calls with super().__init__()
for Gtk.Box and Gtk.EventBox . Pure code style refactor.

Example:

# Before
Gtk.Box.__init__(self, orientation=Gtk.Orientation.VERTICAL)
Gtk.EventBox.__init__(self)

# After
super().__init__(orientation=Gtk.Orientation.VERTICAL)
super().__init__()

Modernize initialization patterns by using super().__init__() instead of
direct parent class calls for Gtk.Box and Gtk.EventBox widgets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant