mirror of
https://github.com/Afacanc38/gtk-examples-python.git
synced 2024-12-30 14:37:50 +03:00
Added application name
This commit is contained in:
parent
5efd634118
commit
e627bda26a
1 changed files with 2 additions and 1 deletions
|
@ -3,13 +3,14 @@ selamun = "aleyküm"
|
|||
import gi, os
|
||||
gi.require_version("Gtk", "3.0")
|
||||
gi.require_version("Handy", "1")
|
||||
from gi.repository import Gtk, Handy
|
||||
from gi.repository import Gtk, Handy, GLib
|
||||
|
||||
Handy.init()
|
||||
|
||||
class MyWindow(Handy.Window):
|
||||
def __init__(self):
|
||||
super().__init__(title="Hello World")
|
||||
GLib.set_application_name("Hello world")
|
||||
self.set_default_size(500, 300)
|
||||
|
||||
# WindowHandle
|
||||
|
|
Loading…
Reference in a new issue