#!/usr/bin/env python3

import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import GLib, Gio, Gtk

from MainWindow import MainWindow

class Application(Gtk.Application):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, application_id="tr.org.pardus.mycomputer", flags=Gio.ApplicationFlags.NON_UNIQUE, **kwargs)

        self.window = None
        GLib.set_prgname("tr.org.pardus.mycomputer")
    
    def do_activate(self):
        self.window = MainWindow(self)


app = Application()
app.run(sys.argv)
