@eshanized updated the repository!!!

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-19 02:11:13 +05:30
parent 8e1cb57e3b
commit 189c7def5b
2 changed files with 30 additions and 1 deletions

View File

@@ -1 +0,0 @@
#

View File

@@ -0,0 +1,30 @@
import gi
import functions as fn
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GdkPixbuf
base_dir = fn.path.dirname(fn.path.realpath(__file__))
class splashScreen(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, Gtk.WindowType.POPUP, title="")
self.set_decorated(False)
self.set_resizable(False)
self.set_size_request(500, 250)
self.set_position(Gtk.WindowPosition.CENTER)
main_vbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=1)
self.add(main_vbox)
self.image = Gtk.Image()
pimage = GdkPixbuf.Pixbuf().new_from_file_at_size(
base_dir + "/images/snigdhaos-splash.png", 600, 400
)
self.image.set_from_pixbuf(pimage)
main_vbox.pack_start(self.image, True, True, 0)
self.show_all()