@ -36,6 +36,7 @@ from .functions.finished_screen import FinishedScreen
from . locales . locales_list import locations
from . locales . locales_list import locations
from . keymaps import keymaps
from . keymaps import keymaps
from . desktops import desktops
from . desktops import desktops
from . utils import disks
@Gtk.Template ( resource_path = ' /al/getcryst/jadegui/window.ui ' )
@Gtk.Template ( resource_path = ' /al/getcryst/jadegui/window.ui ' )
class JadeGuiWindow ( Gtk . ApplicationWindow ) :
class JadeGuiWindow ( Gtk . ApplicationWindow ) :
@ -92,26 +93,25 @@ class JadeGuiWindow(Gtk.ApplicationWindow):
self . keyboard_screen . list_keyboard_layouts . append ( KeyboardLayout ( window = self , country = keymap . layout , country_shorthand = keymap . backend_layout , variants = keymap . variant , * * kwargs ) )
self . keyboard_screen . list_keyboard_layouts . append ( KeyboardLayout ( window = self , country = keymap . layout , country_shorthand = keymap . backend_layout , variants = keymap . variant , * * kwargs ) )
### ---------
### ---------
### Test variants
### ---------
### Test desktops
### Test desktops
onyx = DesktopEntry ( window = self , desktop = " Onyx " , button_group = None , * * kwargs ) # Manually specifying onyx since the other entries need a button group to attach to
onyx = DesktopEntry ( window = self , desktop = " Onyx " , button_group = None , * * kwargs ) # Manually specifying onyx since the other entries need a button group to attach to
self . desktop_screen . list_desktops . append ( onyx )
self . desktop_screen . list_desktops . append ( onyx )
for desktop in desktops :
for desktop in desktops :
if desktop is not " Onyx " :
if desktop != " Onyx " :
print ( desktop )
print ( desktop )
self . desktop_screen . list_desktops . append ( DesktopEntry ( window = self , desktop = desktop , button_group = onyx . select_button , * * kwargs ) )
self . desktop_screen . list_desktops . append ( DesktopEntry ( window = self , desktop = desktop , button_group = onyx . select_button , * * kwargs ) )
### ---------
### ---------
### Test partitions
### Test partitions
partition_test = DiskEntry ( window = self , disk = " /dev/sda " , disk_size = " 2000gb " , button_group = None , * * kwargs )
available_disks = disks . get_disks ( )
partition_test_two = DiskEntry ( window = self , disk = " /dev/nvme0n1 " , disk_size = " 100mb (morbillion bytes) " , button_group = partition_test . select_button , * * kwargs )
firstdisk = DiskEntry ( window = self , disk = available_disks [ 0 ] , disk_size = disks . get_disk_size ( available_disks [ 0 ] ) , button_group = None , * * kwargs )
partition_test_three = DiskEntry ( window = self , disk = " /dev/whatotherdisklabelsarethere " , disk_size = " no " , button_group = partition_test . select_button , * * kwargs )
self . partition_screen . partition_list . append ( firstdisk )
self . partition_screen . partition_list . append ( partition_test )
print ( available_disks [ 0 ] )
self . partition_screen . partition_list . append ( partition_test_two )
print ( available_disks )
self . partition_screen . partition_list . append ( partition_test_three )
for disk in available_disks :
if disk != available_disks [ 0 ] :
print ( disk )
self . partition_screen . partition_list . append ( DiskEntry ( window = self , disk = disk , disk_size = disks . get_disk_size ( disk ) , button_group = firstdisk . select_button , * * kwargs ) )
### ---------
### ---------
def nextPage ( self , idk ) :
def nextPage ( self , idk ) :