9db6c513c9
- Add install_station package with __init__.py and core modules - Include boot_manager.py for boot loader configuration (BootManager class with singleton pattern) - Add common.py with password strength validation utilities and ZFS dataset definitions - Add custom.py with Partitions class for disk partitioning management (1010 lines) - Establish foundation for GTK+ based GhostBSD installer application Modules added: - boot_manager: UEFI/BIOS boot manager selection with rEFInd and FreeBSD options - common: Password validation functions and deprecated decorator utility - custom: Comprehensive partition management with GTK+ interface
50 lines
1.2 KiB
Python
50 lines
1.2 KiB
Python
import gi
|
|
gi.require_version('Gtk', '3.0')
|
|
from gi.repository import Gtk
|
|
|
|
|
|
class Window:
|
|
window = Gtk.Window()
|
|
|
|
@classmethod
|
|
def connect(cls, signal, callback):
|
|
return cls.window.connect(signal, callback)
|
|
|
|
@classmethod
|
|
def set_border_width(cls, width):
|
|
return cls.window.set_border_width(width)
|
|
|
|
@classmethod
|
|
def set_default_size(cls, width, height):
|
|
return cls.window.set_default_size(width, height)
|
|
|
|
@classmethod
|
|
def set_size_request(cls, width, height):
|
|
return cls.window.set_size_request(width, height)
|
|
|
|
@classmethod
|
|
def set_title(cls, title):
|
|
return cls.window.set_title(title)
|
|
|
|
@classmethod
|
|
def set_icon_from_file(cls, filename):
|
|
return cls.window.set_icon_from_file(filename)
|
|
|
|
@classmethod
|
|
def add(cls, widget):
|
|
return cls.window.add(widget)
|
|
|
|
@classmethod
|
|
def show_all(cls):
|
|
return cls.window.show_all()
|
|
|
|
@classmethod
|
|
def hide(cls):
|
|
"""Hide the window."""
|
|
return cls.window.hide()
|
|
|
|
@classmethod
|
|
def __getattr__(cls, name):
|
|
"""Fallback for any methods not explicitly defined."""
|
|
return getattr(cls.window, name)
|