mirror of
https://github.com/Afacanc38/gtk-examples-python.git
synced 2024-11-17 03:55:05 +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
|
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
|
||||||
|
|
Loading…
Reference in a new issue