Added application name

This commit is contained in:
Alperen İsa Nalbant 2021-11-28 16:13:18 +01:00
parent 5efd634118
commit e627bda26a

View file

@ -3,13 +3,14 @@ selamun = "aleyküm"
import gi, os import gi, os
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
gi.require_version("Handy", "1") gi.require_version("Handy", "1")
from gi.repository import Gtk, Handy from gi.repository import Gtk, Handy, GLib
Handy.init() 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")
GLib.set_application_name("Hello world")
self.set_default_size(500, 300) self.set_default_size(500, 300)
# WindowHandle # WindowHandle