set default size in 2-headerbar.py

This commit is contained in:
Alperen İsa 2021-08-30 18:11:48 +03:00 committed by GitHub
parent 4f738f7eb5
commit fe8d6a83c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ Handy.init()
class MyWindow(Handy.Window): class MyWindow(Handy.Window):
def __init__(self): def __init__(self):
super().__init__(title="Hello World") super().__init__(title="Hello World")
self.set_default_size(500, 300)
# WindowHandle # WindowHandle
self.handle = Handy.WindowHandle() self.handle = Handy.WindowHandle()