An example:
#!/usr/bin/python3
# coding: utf-8
# window.py
from gi.repository import Gtk
class App(Gtk.Window):
def __init__(self):
super(Gtk.Window, self).__init__(title='Hello World')
self.set_position(Gtk.WindowPosition.CENTER)
self.set_size_request(600, 400)
self.set_keep_above(True)
self.set_modal(True)
self.set_icon_name('Hello World')
self.set_deletable(True)
self.set_opacity(1)
self.set_skip_pager_hint(True)
self.set_skip_taskbar_hint(False)
self.set_auto_startup_notification(False)
self.set_border_width(10)
main = App()
main.connect("delete-event", Gtk.main_quit)
main.show_all()
Gtk.main()
How do I open this script by giving two clicks as an executable?