mirror of
https://github.com/Snigdha-OS/snigdhaos-welcome.git
synced 2025-09-07 09:15:12 +02:00
83 lines
2.6 KiB
Python
83 lines
2.6 KiB
Python
# =================================================================
|
|
# = Authors: Brad Heffernan & Erik Dubois =
|
|
# =================================================================
|
|
|
|
import gi
|
|
import os
|
|
gi.require_version('Gtk', '3.0')
|
|
from gi.repository import Gtk # noqa
|
|
|
|
base_dir = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
|
class Conflicts(Gtk.Window):
|
|
def __init__(self):
|
|
super(Conflicts, self).__init__(title="Information")
|
|
self.set_border_width(10)
|
|
self.set_default_size(550, 250)
|
|
self.connect("delete-event", self.close)
|
|
self.set_icon_from_file(os.path.join(base_dir, 'images/arcolinux.png'))
|
|
self.set_position(Gtk.WindowPosition.CENTER)
|
|
|
|
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=10)
|
|
self.add(vbox)
|
|
|
|
# If you want header in middle then remove xalign=0
|
|
lblh1 = Gtk.Label(xalign=0)
|
|
lblh1.set_markup("<b><i>Warning 1</i></b>")
|
|
|
|
lblm1 = Gtk.Label()
|
|
lblm1.set_text("xcursor-breeze conflicts with breeze")
|
|
|
|
lblh2 = Gtk.Label(xalign=0)
|
|
lblh2.set_markup("<b><i>Warning 2</i></b>")
|
|
|
|
lblm2 = Gtk.Label()
|
|
lblm2.set_text("visual-studio-code-bin conflicts with code")
|
|
|
|
lblh3 = Gtk.Label(xalign=0)
|
|
lblh3.set_markup("<b><i>Warning 3</i></b>")
|
|
|
|
lblm3 = Gtk.Label()
|
|
lblm3.set_text("synapse (zeitgeist) conflicts with catfish")
|
|
|
|
lblh4 = Gtk.Label(xalign=0)
|
|
lblh4.set_markup("<b><i>Warning 4</i></b>")
|
|
|
|
lblm4 = Gtk.Label()
|
|
lblm4.set_text("Either choose libreoffice-fresh or libreoffice-still")
|
|
|
|
lblh5 = Gtk.Label(xalign=0)
|
|
lblh5.set_markup("<b><i>Warning 5</i></b>")
|
|
|
|
lblm5 = Gtk.Label()
|
|
lblm5.set_text("Either choose virtualbox for linux or linux-lts")
|
|
|
|
lblh6 = Gtk.Label(xalign=0)
|
|
lblh6.set_markup("<b><i>Warning 6</i></b>")
|
|
|
|
lblm6 = Gtk.Label()
|
|
lblm6.set_text("midori (zeitgeist) conflicts with catfish")
|
|
|
|
|
|
vbox.pack_start(lblh1, False, False, 0)
|
|
vbox.pack_start(lblm1, False, False, 0)
|
|
|
|
vbox.pack_start(lblh2, False, False, 0)
|
|
vbox.pack_start(lblm2, False, False, 0)
|
|
|
|
vbox.pack_start(lblh3, False, False, 0)
|
|
vbox.pack_start(lblm3, False, False, 0)
|
|
|
|
vbox.pack_start(lblh4, False, False, 0)
|
|
vbox.pack_start(lblm4, False, False, 0)
|
|
|
|
vbox.pack_start(lblh5, False, False, 0)
|
|
vbox.pack_start(lblm5, False, False, 0)
|
|
|
|
vbox.pack_start(lblh6, False, False, 0)
|
|
vbox.pack_start(lblm6, False, False, 0)
|
|
|
|
def close(self, widget, event):
|
|
self.destroy()
|