init
This commit is contained in:
18
dev/fake-ding.py
Normal file
18
dev/fake-ding.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Fenster, das sich wie Desktop Icons (DING) ausgibt: Titel "Desktop Icons 1", bildschirmfüllend.
|
||||
# Start: WAYLAND_DISPLAY=wayland-1 DBUS_SESSION_BUS_ADDRESS=$(cat /tmp/desktop-app-nested/bus) python3 dev/fake-ding.py
|
||||
import gi
|
||||
gi.require_version('Gtk', '4.0')
|
||||
from gi.repository import Gtk, GLib
|
||||
|
||||
app = Gtk.Application(application_id='com.rastersoft.dingtest')
|
||||
|
||||
def activate(app):
|
||||
win = Gtk.ApplicationWindow(application=app, title='Desktop Icons 1', default_width=1920, default_height=1080)
|
||||
label = Gtk.Label(label='FAKE DING')
|
||||
label.set_valign(Gtk.Align.END)
|
||||
label.set_halign(Gtk.Align.CENTER)
|
||||
win.set_child(label)
|
||||
win.present()
|
||||
|
||||
app.connect('activate', activate)
|
||||
app.run()
|
||||
Reference in New Issue
Block a user