blivetgui package¶
Subpackages¶
- blivetgui.communication package
- blivetgui.dialogs package
- Submodules
- blivetgui.dialogs.add_dialog module
AddDialog
AddDialog.add_advanced_options()
AddDialog.add_device_chooser()
AddDialog.add_fs_chooser()
AddDialog.add_md_type_chooser()
AddDialog.add_mountpoint()
AddDialog.add_name_chooser()
AddDialog.add_parent_list()
AddDialog.add_size_area()
AddDialog.get_selection()
AddDialog.hide_widgets()
AddDialog.on_cell_toggled()
AddDialog.on_devices_combo_changed()
AddDialog.on_encrypt_check()
AddDialog.on_filesystems_combo_changed()
AddDialog.on_md_type_changed()
AddDialog.on_ok_clicked()
AddDialog.on_raid_type_changed()
AddDialog.raid_member_max_size()
AddDialog.scrolled_adjust()
AddDialog.select_selected_free_region()
AddDialog.selected_fs
AddDialog.selected_type
AddDialog.show_widgets()
AddDialog.update_fs_chooser()
AddDialog.update_parent_list()
AddDialog.update_raid_type_chooser()
AddDialog.update_size_area_limits()
AddDialog.validate_user_input()
AdvancedOptions
AdvancedOptions.destroy()
AdvancedOptions.get_selection()
AdvancedOptions.hide()
AdvancedOptions.lvm_options()
AdvancedOptions.mdraid_options()
AdvancedOptions.on_partition_type_changed()
AdvancedOptions.on_pesize_changed()
AdvancedOptions.partition_options()
AdvancedOptions.set_sensitive()
AdvancedOptions.show()
AdvancedOptions.validate_user_input()
- blivetgui.dialogs.constants module
- blivetgui.dialogs.device_info_dialog module
- blivetgui.dialogs.edit_dialog module
FormatDialog
LVMEditDialog
LVMEditDialog.add_parent_list()
LVMEditDialog.add_parents()
LVMEditDialog.add_toggle_buttons()
LVMEditDialog.get_selection()
LVMEditDialog.hide_widgets()
LVMEditDialog.on_button_toggled()
LVMEditDialog.on_cell_radio_toggled()
LVMEditDialog.on_cell_toggled()
LVMEditDialog.remove_parents()
LVMEditDialog.show_widgets()
LabelDialog
MountpointDialog
ResizeDialog
UnmountDialog
- blivetgui.dialogs.helpers module
- blivetgui.dialogs.message_dialogs module
- blivetgui.dialogs.other_dialogs module
- blivetgui.dialogs.size_chooser module
- blivetgui.dialogs.widgets module
EncryptionChooser
EncryptionChooser.connect()
EncryptionChooser.encrypt
EncryptionChooser.get_selection()
EncryptionChooser.glade_file
EncryptionChooser.name
EncryptionChooser.selected_ess
EncryptionChooser.selected_type
EncryptionChooser.set_advanced_visible()
EncryptionChooser.set_visible()
EncryptionChooser.validate_user_input()
EncryptionSelection
GUIWidget
RaidChooser
SignalHandler
- Module contents
- blivetgui.visualization package
Submodules¶
blivetgui.actions_toolbar module¶
- class blivetgui.actions_toolbar.ActionsToolbar(blivet_gui)¶
Bases:
BlivetGUIToolbar
- deactivate_all()¶
- class blivetgui.actions_toolbar.BlivetGUIToolbar(blivet_gui)¶
Bases:
object
- activate_buttons(button_names)¶
Activate selected buttons
- Parameters:
button_names (list of str) – names of buttons to activate
- deactivate_buttons(button_names)¶
Deactivate selected buttons
- Parameters:
button_names (list of str) – names of buttons to deactivate
- class blivetgui.actions_toolbar.DeviceToolbar(blivet_gui)¶
Bases:
BlivetGUIToolbar
Create toolbar with action buttons
- deactivate_all()¶
Deactivate all partition based buttons
blivetgui.blivet_utils module¶
- class blivetgui.blivet_utils.BlivetUtils(ignored_disks=None, exclusive_disks=None, flags=None)¶
Bases:
object
Class with utils directly working with blivet itselves
- add_device(user_input)¶
Create new device
- Parameters:
user_input (class UserInput) – selected parameters from AddDialog
- Returns:
new device name
- Return type:
str
- add_dict = {'btrfs subvolume': <function BlivetUtils._create_btrfs_subvolume>, 'btrfs volume': <function BlivetUtils._create_btrfs_volume>, 'lvm': <function BlivetUtils._create_lvm>, 'lvm snapshot': <function BlivetUtils._create_snapshot>, 'lvm thinsnapshot': <function BlivetUtils._create_snapshot>, 'lvmlv': <function BlivetUtils._create_lvmlv>, 'lvmpv': <function BlivetUtils._create_lvmpv>, 'lvmthinlv': <function BlivetUtils._create_lvmthinlv>, 'lvmthinpool': <function BlivetUtils._create_lvmthinpool>, 'lvmvg': <function BlivetUtils._create_lvmvg>, 'mdraid': <function BlivetUtils._create_mdraid>, 'partition': <function BlivetUtils._create_partition>}¶
- blivet_cancel_actions(actions)¶
Cancel scheduled actions
- blivet_do_it(progress_report_hook)¶
Blivet.do_it()
- blivet_reset()¶
Blivet.reset()
- create_disk_label(blivet_device, label_type)¶
Create disklabel
- Parameters:
blivet_device (blivet.Device) – blivet device
label_type (str) – type of label to create
- delete_device(blivet_device, delete_parents)¶
Delete device
- Parameters:
blivet_device (blivet.Device) – blivet device
delete_parents (bool) – delete parent devices too?
- device_resizable(blivet_device)¶
Is given device resizable
- Parameters:
blivet_device (blivet.Device) – blivet device
- Returns:
device resizable, min_size, max_size, size
- Return type:
tuple
- edit_lvmvg_device(user_input)¶
Edit LVM Volume group
- format_device(user_input)¶
- get_actions()¶
Return list of currently registered actions
- get_children(blivet_device)¶
Get partitions (children) of selected device
- Parameters:
blivet_device (blivet.device.Device) – blivet device
- Returns:
list of child devices
- Return type:
list of blivet.device.Device
- get_default_filesystem()¶
- get_disk_children(blivet_device)¶
- get_disks()¶
Return list of all disk devices on current system
- Returns:
list of all “disk” devices
- Return type:
list
- get_free_device(blivet_device)¶
Get FreeSpaceDevice object for selected device (e.g. VG)
- get_free_info()¶
Get list of free ‘devices’ (PVs and disk regions) that can be used as parents for newly added devices
- get_group_device(blivet_device)¶
Get ‘group’ device based on underlying device (lvmpv/btrfs/mdmember/luks partition)
- get_group_devices()¶
Return list of LVM2 Volume Group devices
- Returns:
list of LVM2 VG devices
- Return type:
list
- get_luks_device(blivet_device)¶
Get luks or integrity device based on underlying partition
- get_mountpoints()¶
Return list of current mountpoints
- get_roots(blivet_device)¶
Get list of parents for selected device with its structure
- get_supported_filesystems()¶
- get_system_mountpoints(blivet_device)¶
- installer_mode = False¶
- log_debug(message, user_input)¶
Log message to the blivet-gui-utils log
- luks_decrypt(blivet_device, passphrase)¶
Decrypt selected luks device
- Parameters:
blivet_device (LUKSDevice) – device to decrypt
passphrase (str) – passphrase
- relabel_format(user_input)¶
- property resizable_filesystems¶
- resize_device(user_input)¶
- class blivetgui.blivet_utils.FreeSpaceDevice(free_size, dev_id, start, end, parents, logical=False)¶
Bases:
object
Special class to represent free space on disk (device) (blivet doesn’t have class/device to represent free space)
- Parameters:
free_size (blivet.size.Size) – size of free space
start – start block
end (int) – end block
parents (blivet.devices.lib.ParentList) – list of parent devices
logical (bool) – is this free space inside extended partition
- property is_empty_disk¶
- property is_free_region¶
- property is_uninitialized_disk¶
- property protected¶
- blivetgui.blivet_utils.lsblk()¶
blivetgui.blivetgui module¶
- class blivetgui.blivetgui.BlivetGUI(client, exclusive_disks=None, keep_above=False, auto_dev_updates=False)¶
Bases:
object
Class representing the GUI part of the application. It creates all the Gtk.Widgets used in blivet-gui.
- actions_undo(_widget=None)¶
Undo last action
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- activate_action_buttons(activate)¶
Set the actions toolbar buttons (in)active
- activate_device_actions(activate_list)¶
Activate available device actions in device toolbar and popup menu
- Parameters:
activate_list (list of str) – list of items to activate
- add_device(_widget=None)¶
Show dialog for adding new device and create the device based on user selection
- apply_event(_widget=None)¶
Apply event for main menu/toolbar :param widget: widget calling this function (only for calls via signal.connect) :type widget: Gtk.Widget()
- blivet_init()¶
- clear_actions(_widget=None)¶
Clear all scheduled actions
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- deactivate_all_actions()¶
Deactivate all partition-based buttons/menu items
- deactivate_device_actions(deactivate_list)¶
Deactivate toolbar buttons and menu items
- Parameters:
deactivate_list (list of str) – list of items to deactivate
- decrypt_device(_widget=None)¶
Unlock selected device
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- delete_selected_partition(_widget=None)¶
Delete selected partition
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- device_information(_widget=None)¶
Display information about currently selected device
- edit_label(_widget=None)¶
- edit_lvmvg(_widget=None)¶
Edit selected lvmvg
- format_device(_widget=None)¶
- initialize()¶
- installer_mode = False¶
- perform_actions(dialog)¶
Perform queued actions
- quit(_event=None, _widget=None)¶
Quit blivet-gui
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- reload(_widget=None)¶
Reload storage information
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- resize_device(_widget=None)¶
- run_dialog(dialog)¶
- set_mountpoint(_widget=None)¶
- set_partition_table(_widget=None)¶
Create partition table on selected disk
- show_actions(_widget=None, _uri=None)¶
Show scheduled actions
- show_confirmation_dialog(title, question)¶
- show_error_dialog(error_message)¶
- show_warning_dialog(warning_message)¶
- property supported_filesystems¶
- switch_device_view(device)¶
- umount_partition(_widget=None)¶
Unmount selected partition
- Parameters:
widget (Gtk.Widget()) – widget calling this function (only for calls via signal.connect)
- update_partitions_view()¶
- update_physical_view()¶
blivetgui.config module¶
- class blivetgui.config.BlivetGUIConfig(*args, **kwargs)¶
Bases:
dict
blivetgui.exception_handler module¶
blivetgui.gui_utils module¶
- blivetgui.gui_utils.command_exists(command)¶
Find if given command exists
- blivetgui.gui_utils.locate_css_file(filename)¶
Locate CSS files
- blivetgui.gui_utils.locate_ui_file(filename)¶
Locate Glade ui files
blivetgui.i18n module¶
- blivetgui.i18n.N_(x)¶
- blivetgui.i18n.P_(x, y, z)¶
blivetgui.list_actions module¶
- class blivetgui.list_actions.ListActions(blivet_gui)¶
Bases:
object
List of children of selected device
Note
There are two types of ‘actions’: ‘blivet actions’ – simply instances of blivet.DeviceAction and ‘blivet-gui actions’ created as a reaction on user action, eg. adding new device or deleting one. One blivet-gui action can consist of more blivet actions (eg. adding a new partition creates two blivet actions – creating of a partition device and creating format for it)
- append(action_type, action_desc, blivet_actions)¶
Append newly scheduled actions to the list of actions
- Parameters:
action_type (str) – type of action (delete/add/edit)
action_desc – description of scheduled action
blivet_actions (list of blivet.DeviceAction) – list of actions
- clear()¶
Delete all actions in actions view
- initialize()¶
- pop()¶
Remove last action from the list of actions
- Returns:
list of blivet actions belonging to the last action
- Return type:
list of blivet.DeviceAction
blivetgui.list_devices module¶
- class blivetgui.list_devices.ListDevices(blivet_gui)¶
Bases:
object
List of parent devices
- Parameters:
blivet_gui (
BlivetGUI
) – instance of BlivetGUI class
- load_devices()¶
- load_disks()¶
Load disks
- load_group_devices()¶
Load LVM2 VGs, Btrfs Volumes and MDArrays
- on_disk_selection_changed(selection)¶
Onselect action for devices
- select_device_by_name(device_name)¶
- update_devices_view()¶
Update device view
blivetgui.list_parents module¶
blivetgui.list_partitions module¶
- class blivetgui.list_partitions.ListPartitions(blivet_gui)¶
Bases:
object
List of children of selected device
- activate_action_buttons(selected_device)¶
Activate buttons in toolbar based on selected device
- Parameters:
selected_device (Gtk.TreeModelRow) – Selected partition
- on_partition_selection_changed(selection)¶
On selected partition action
- on_right_click_event(treeview, event)¶
Right click event on partition treeview
- select_device(device)¶
Select device from list
- update_partitions_list(selected_device)¶
Update partition view with selected disc children (partitions)
- Parameters:
selected_device – selected device from list (eg. disk or VG)
blivetgui.loading_window module¶
blivetgui.logs module¶
- blivetgui.logs.log_utils_call(log, message, user_input)¶
- blivetgui.logs.set_logging(component, logging_level=10)¶
Configure logging
- Parameters:
component (str) – name of a component
logging_level (int) – loglevel
blivetgui.osinstall module¶
- class blivetgui.osinstall.BlivetGUIAnaconda(client, spoke, spoke_container)¶
Bases:
BlivetGUI
- activate_action_buttons(activate)¶
Set the actions toolbar buttons (in)active
- allow_ignore = True¶
- enlightbox()¶
- initialize()¶
- installer_mode = True¶
- property label_actions¶
- property main_window¶
- reload(_widget=None)¶
Reload storage information
- run_dialog(dialog)¶
- set_actions(blivet_actions)¶
- set_keyboard_shortcuts(_spoke)¶
Configure blivet-gui keyboard shortcuts and add our accel group to the Anaconda main window. This configuration should be removed using “unset_keyboard_shortcuts” when exiting blivet-gui spoke
- show_confirmation_dialog(title, question)¶
- show_error_dialog(error_message)¶
- show_warning_dialog(warning_message)¶
- ui_refresh(_spoke)¶
This should be called only from Anaconda using the spoke ‘entered’ signal.
In Anaconda blivetgui.initialize runs during ‘refresh’ when Gtk widgets are not visible (‘realized’) and this causes some UI elements to look weird because of wrong size allocation (unrealized widgets don’t have size allocation so things like size of devices in visualization fail).
- unset_keyboard_shortcuts(_spoke)¶
Remove configuration added using “set_keyboard_shortcuts”
- class blivetgui.osinstall.BlivetGUIAnacondaClient¶
Bases:
object
- initialize(storage)¶
- remote_call(method, *args)¶
- class blivetgui.osinstall.BlivetUtilsAnaconda¶
Bases:
BlivetUtils
- installer_mode = True¶
- property storage¶
blivetgui.processing_window module¶
- class blivetgui.processing_window.ProcessingActions(blivet_gui, actions)¶
Bases:
Dialog
Processing actions dialog
- Parameters:
blivet-gui (
BlivetGUI
) – BlivetGUI instanceactions (int) – number of actions to process
- add_action_view()¶
Show list of actions
- progress_msg(message)¶
- start()¶
Start the dialog
- stop()¶
End the thread