Exemple #1
0
class DeviceGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Device"), parent)
        self._Global_grid = QGridLayout(self)

        self._Slot_label = QLabel(_("Slot"))
        self._Global_grid.addWidget(self._Slot_label, 0, 0)
        self._Slot_combo = QComboBox()
        for i in range(meminfo.getNumOfDev()):
            self._Slot_combo.addItem(_("Slot #%d") % i)
        self.connect(self._Slot_combo, 
                    SIGNAL("currentIndexChanged(int)"),
                    self.changeSlot)
        self._Global_grid.addWidget(self._Slot_combo, 0, 1)

        self._Type_label = QLabel(_("Type"))
        self._Global_grid.addWidget(self._Type_label, 0, 4)
        self._Type_edit = NEBox()
        self._Global_grid.addWidget(self._Type_edit, 0, 5, 1, 4)

        self._Size_label = QLabel(_("Size"))
        self._Global_grid.addWidget(self._Size_label, 1, 0)
        self._Size_edit = NEBox()
        self._Global_grid.addWidget(self._Size_edit, 1, 1, 1, 8)

        self._Clock_label = QLabel(_("Clock"))
        self._Global_grid.addWidget(self._Clock_label, 2, 0)
        self._Clock_edit = NEBox()
        self._Global_grid.addWidget(self._Clock_edit, 2, 1, 1, 8)

        self._TWidth_label = QLabel(_("Total Width"))
        self._Global_grid.addWidget(self._TWidth_label, 3, 0)
        self._TWidth_edit = NEBox()
        self._Global_grid.addWidget(self._TWidth_edit, 3, 1, 1, 3)

        self._DWidth_label = QLabel(_("Data Width"))
        self._Global_grid.addWidget(self._DWidth_label, 3, 5)
        self._DWidth_edit = NEBox()
        self._Global_grid.addWidget(self._DWidth_edit, 3, 6, 1, 3)

    def changeSlot (self, slot):
        self._Type_edit.setText(meminfo.getType(slot))
        self._Size_edit.setText(meminfo.getSize(slot))
        self._Clock_edit.setText(meminfo.getClock(slot))

        width = meminfo.getWidth(slot)
        self._TWidth_edit.setText(width[0])
        self._DWidth_edit.setText(width[1])

    def refresh (self):
        if meminfo.getNumOfDev():
            self.changeSlot(0)
Exemple #2
0
class MotherboardGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Motherboard"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1, 1, 8)

        self._Model_label = QLabel(_("Model"))
        self._Global_grid.addWidget(self._Model_label, 1, 0)
        self._Model_edit = NEBox()
        self._Global_grid.addWidget(self._Model_edit, 1, 1, 1, 5)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 6, 1, 3)

        self._Serial_label = QLabel(_("Serial"))
        self._Global_grid.addWidget(self._Serial_label, 2, 0)
        self._Serial_edit = NEBox()
        self._Global_grid.addWidget(self._Serial_edit, 2, 1, 1, 8)

    def refresh (self):
        self._Vendor_edit.setText(getMoboInfo("board_vendor"))
        self._Model_edit.setText(getMoboInfo("board_name"))
        self._Version_edit.setText(getMoboInfo("board_version"))
        self._Serial_edit.setText(getMoboInfo("board_serial"))
Exemple #3
0
class MotherboardGroup(QGroupBox):
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Motherboard"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1, 1, 8)

        self._Model_label = QLabel(_("Model"))
        self._Global_grid.addWidget(self._Model_label, 1, 0)
        self._Model_edit = NEBox()
        self._Global_grid.addWidget(self._Model_edit, 1, 1, 1, 5)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 6, 1, 3)

        self._Serial_label = QLabel(_("Serial"))
        self._Global_grid.addWidget(self._Serial_label, 2, 0)
        self._Serial_edit = NEBox()
        self._Global_grid.addWidget(self._Serial_edit, 2, 1, 1, 8)

    def refresh(self):
        self._Vendor_edit.setText(getMoboInfo("board_vendor"))
        self._Model_edit.setText(getMoboInfo("board_name"))
        self._Version_edit.setText(getMoboInfo("board_version"))
        self._Serial_edit.setText(getMoboInfo("board_serial"))
Exemple #4
0
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("BIOS"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._Date_label = QLabel(_("Date"))
        self._Global_grid.addWidget(self._Date_label, 2, 0)
        self._Date_edit = NEBox()
        self._Global_grid.addWidget(self._Date_edit, 2, 1)
Exemple #5
0
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Python"), parent)
        self._Global_grid = QGridLayout(self)

        self._Implementation_label = QLabel(_("Implementation"))
        self._Global_grid.addWidget(self._Implementation_label, 0, 0)
        self._Implementation_edit = NEBox()
        self._Global_grid.addWidget(self._Implementation_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._PyQtVersion_label = QLabel(_("PyQt4 Version"))
        self._Global_grid.addWidget(self._PyQtVersion_label, 2, 0)
        self._PyQtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._PyQtVersion_edit, 2, 1)
Exemple #6
0
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Motherboard"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1, 1, 8)

        self._Model_label = QLabel(_("Model"))
        self._Global_grid.addWidget(self._Model_label, 1, 0)
        self._Model_edit = NEBox()
        self._Global_grid.addWidget(self._Model_edit, 1, 1, 1, 5)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 6, 1, 3)

        self._Serial_label = QLabel(_("Serial"))
        self._Global_grid.addWidget(self._Serial_label, 2, 0)
        self._Serial_edit = NEBox()
        self._Global_grid.addWidget(self._Serial_edit, 2, 1, 1, 8)
Exemple #7
0
class GeneralGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("General"), parent)
        self._Global_grid = QGridLayout(self)

        self._Physical_label = QLabel(_("Physical Memory"))
        self._Global_grid.addWidget(self._Physical_label, 0, 0)
        self._Physical_edit = NEBox()
        self._Global_grid.addWidget(self._Physical_edit, 0, 1)

        self._MaxCap_label = QLabel(_("Maximum Capacity"))
        self._Global_grid.addWidget(self._MaxCap_label, 1, 0)
        self._MaxCap_edit = NEBox()
        self._Global_grid.addWidget(self._MaxCap_edit, 1, 1)

        self._Swap_label = QLabel(_("Swap"))
        self._Global_grid.addWidget(self._Swap_label, 2, 0)
        self._Swap_edit = NEBox()
        self._Global_grid.addWidget(self._Swap_edit, 2, 1)


    def refresh (self):
        fin = open("/proc/meminfo")
        for line in fin:
            if "MemTotal" in line:
                self._Physical_edit.setText(
                        friendly_print(line.split()[1], "K"))
            elif "SwapTotal" in line:
                self._Swap_edit.setText(
                        friendly_print(line.split()[1], "K"))

        self._MaxCap_edit.setText(meminfo.getMaxCapacity())
Exemple #8
0
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Operating System"), parent)
        self._Global_grid = QGridLayout(self)

        self._Arch_label = QLabel(_("Architecture"))
        self._Global_grid.addWidget(self._Arch_label, 0, 0)
        self._Arch_edit = NEBox()
        self._Global_grid.addWidget(self._Arch_edit, 0, 1)

        self._Kernel_label = QLabel(_("Kernel"))
        self._Global_grid.addWidget(self._Kernel_label, 1, 0)
        self._Kernel_edit = NEBox()
        self._Global_grid.addWidget(self._Kernel_edit, 1, 1)

        self._Dist_label = QLabel(_("Distribution"))
        self._Global_grid.addWidget(self._Dist_label, 2, 0)
        self._Dist_edit = NEBox()
        self._Global_grid.addWidget(self._Dist_edit, 2, 1)

        self._ComputerName_label = QLabel(_("Computer Name"))
        self._Global_grid.addWidget(self._ComputerName_label, 3, 0)
        self._ComputerName_edit = NEBox()
        self._Global_grid.addWidget(self._ComputerName_edit, 3, 1)

        self._libcVersion_label = QLabel(_("C Library"))
        self._Global_grid.addWidget(self._libcVersion_label, 4, 0)
        self._libcVersion_edit = NEBox()
        self._Global_grid.addWidget(self._libcVersion_edit, 4, 1)

        self._GCCVersion_label = QLabel(_("GCC Version"))
        self._Global_grid.addWidget(self._GCCVersion_label, 5, 0)
        self._GCCVersion_edit = NEBox()
        self._Global_grid.addWidget(self._GCCVersion_edit, 5, 1)

        self._XVersion_label = QLabel(_("Xorg Version"))
        self._Global_grid.addWidget(self._XVersion_label, 6, 0)
        self._XVersion_edit = NEBox()
        self._Global_grid.addWidget(self._XVersion_edit, 6, 1)

        self._QtVersion_label = QLabel(_("Qt4 Version"))
        self._Global_grid.addWidget(self._QtVersion_label, 7, 0)
        self._QtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._QtVersion_edit, 7, 1)
Exemple #9
0
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Motherboard"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1, 1, 8)

        self._Model_label = QLabel(_("Model"))
        self._Global_grid.addWidget(self._Model_label, 1, 0)
        self._Model_edit = NEBox()
        self._Global_grid.addWidget(self._Model_edit, 1, 1, 1, 5)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 6, 1, 3)

        self._Serial_label = QLabel(_("Serial"))
        self._Global_grid.addWidget(self._Serial_label, 2, 0)
        self._Serial_edit = NEBox()
        self._Global_grid.addWidget(self._Serial_edit, 2, 1, 1, 8)
Exemple #10
0
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("General"), parent)
        self._Global_grid = QGridLayout(self)

        self._Physical_label = QLabel(_("Physical Memory"))
        self._Global_grid.addWidget(self._Physical_label, 0, 0)
        self._Physical_edit = NEBox()
        self._Global_grid.addWidget(self._Physical_edit, 0, 1)

        self._MaxCap_label = QLabel(_("Maximum Capacity"))
        self._Global_grid.addWidget(self._MaxCap_label, 1, 0)
        self._MaxCap_edit = NEBox()
        self._Global_grid.addWidget(self._MaxCap_edit, 1, 1)

        self._Swap_label = QLabel(_("Swap"))
        self._Global_grid.addWidget(self._Swap_label, 2, 0)
        self._Swap_edit = NEBox()
        self._Global_grid.addWidget(self._Swap_edit, 2, 1)
Exemple #11
0
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Python"), parent)
        self._Global_grid = QGridLayout(self)

        self._Implementation_label = QLabel(_("Implementation"))
        self._Global_grid.addWidget(self._Implementation_label, 0, 0)
        self._Implementation_edit = NEBox()
        self._Global_grid.addWidget(self._Implementation_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._PyQtVersion_label = QLabel(_("PyQt4 Version"))
        self._Global_grid.addWidget(self._PyQtVersion_label, 2, 0)
        self._PyQtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._PyQtVersion_edit, 2, 1)
Exemple #12
0
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("BIOS"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._Date_label = QLabel(_("Date"))
        self._Global_grid.addWidget(self._Date_label, 2, 0)
        self._Date_edit = NEBox()
        self._Global_grid.addWidget(self._Date_edit, 2, 1)
Exemple #13
0
class PythonGroup(QGroupBox):
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Python"), parent)
        self._Global_grid = QGridLayout(self)

        self._Implementation_label = QLabel(_("Implementation"))
        self._Global_grid.addWidget(self._Implementation_label, 0, 0)
        self._Implementation_edit = NEBox()
        self._Global_grid.addWidget(self._Implementation_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._PyQtVersion_label = QLabel(_("PyQt4 Version"))
        self._Global_grid.addWidget(self._PyQtVersion_label, 2, 0)
        self._PyQtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._PyQtVersion_edit, 2, 1)

    def refresh(self):
        self._Implementation_edit.setText(platform.python_implementation())
        self._Version_edit.setText(platform.python_version())
        self._PyQtVersion_edit.setText(PYQT_VERSION_STR)
Exemple #14
0
class PythonGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Python"), parent)
        self._Global_grid = QGridLayout(self)

        self._Implementation_label = QLabel(_("Implementation"))
        self._Global_grid.addWidget(self._Implementation_label, 0, 0)
        self._Implementation_edit = NEBox()
        self._Global_grid.addWidget(self._Implementation_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._PyQtVersion_label = QLabel(_("PyQt4 Version"))
        self._Global_grid.addWidget(self._PyQtVersion_label, 2, 0)
        self._PyQtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._PyQtVersion_edit, 2, 1)

    def refresh (self):
        self._Implementation_edit.setText(platform.python_implementation())
        self._Version_edit.setText(platform.python_version())
        self._PyQtVersion_edit.setText(PYQT_VERSION_STR)
Exemple #15
0
class BIOSGroup(QGroupBox):
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("BIOS"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._Date_label = QLabel(_("Date"))
        self._Global_grid.addWidget(self._Date_label, 2, 0)
        self._Date_edit = NEBox()
        self._Global_grid.addWidget(self._Date_edit, 2, 1)

    def refresh(self):
        self._Vendor_edit.setText(getMoboInfo("bios_vendor"))
        self._Version_edit.setText(getMoboInfo("bios_version"))
        self._Date_edit.setText(getMoboInfo("bios_date"))
Exemple #16
0
class BIOSGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("BIOS"), parent)
        self._Global_grid = QGridLayout(self)

        self._Vendor_label = QLabel(_("Vendor"))
        self._Global_grid.addWidget(self._Vendor_label, 0, 0)
        self._Vendor_edit = NEBox()
        self._Global_grid.addWidget(self._Vendor_edit, 0, 1)

        self._Version_label = QLabel(_("Version"))
        self._Global_grid.addWidget(self._Version_label, 1, 0)
        self._Version_edit = NEBox()
        self._Global_grid.addWidget(self._Version_edit, 1, 1)

        self._Date_label = QLabel(_("Date"))
        self._Global_grid.addWidget(self._Date_label, 2, 0)
        self._Date_edit = NEBox()
        self._Global_grid.addWidget(self._Date_edit, 2, 1)

    def refresh (self):
        self._Vendor_edit.setText(getMoboInfo("bios_vendor"))
        self._Version_edit.setText(getMoboInfo("bios_version"))
        self._Date_edit.setText(getMoboInfo("bios_date"))
Exemple #17
0
class OSGroup(QGroupBox):
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Operating System"), parent)
        self._Global_grid = QGridLayout(self)

        self._Arch_label = QLabel(_("Architecture"))
        self._Global_grid.addWidget(self._Arch_label, 0, 0)
        self._Arch_edit = NEBox()
        self._Global_grid.addWidget(self._Arch_edit, 0, 1)

        self._Kernel_label = QLabel(_("Kernel"))
        self._Global_grid.addWidget(self._Kernel_label, 1, 0)
        self._Kernel_edit = NEBox()
        self._Global_grid.addWidget(self._Kernel_edit, 1, 1)

        self._Dist_label = QLabel(_("Distribution"))
        self._Global_grid.addWidget(self._Dist_label, 2, 0)
        self._Dist_edit = NEBox()
        self._Global_grid.addWidget(self._Dist_edit, 2, 1)

        self._ComputerName_label = QLabel(_("Computer Name"))
        self._Global_grid.addWidget(self._ComputerName_label, 3, 0)
        self._ComputerName_edit = NEBox()
        self._Global_grid.addWidget(self._ComputerName_edit, 3, 1)

        self._libcVersion_label = QLabel(_("C Library"))
        self._Global_grid.addWidget(self._libcVersion_label, 4, 0)
        self._libcVersion_edit = NEBox()
        self._Global_grid.addWidget(self._libcVersion_edit, 4, 1)

        self._GCCVersion_label = QLabel(_("GCC Version"))
        self._Global_grid.addWidget(self._GCCVersion_label, 5, 0)
        self._GCCVersion_edit = NEBox()
        self._Global_grid.addWidget(self._GCCVersion_edit, 5, 1)

        self._XVersion_label = QLabel(_("Xorg Version"))
        self._Global_grid.addWidget(self._XVersion_label, 6, 0)
        self._XVersion_edit = NEBox()
        self._Global_grid.addWidget(self._XVersion_edit, 6, 1)

        self._QtVersion_label = QLabel(_("Qt4 Version"))
        self._Global_grid.addWidget(self._QtVersion_label, 7, 0)
        self._QtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._QtVersion_edit, 7, 1)

    def refresh(self):
        self._Arch_edit.setText(platform.machine())
        self._Kernel_edit.setText("%s %s" % \
                (platform.system(), platform.release()))
        self._Dist_edit.setText(" ".join(platform.linux_distribution()))
        self._ComputerName_edit.setText(platform.node())
        self._libcVersion_edit.setText(" ".join(platform.libc_ver()))
        self._GCCVersion_edit.setText(getGCCVersion())
        self._XVersion_edit.setText(getXorgVersion())
        self._QtVersion_edit.setText(qVersion())
Exemple #18
0
class OSGroup (QGroupBox):
    def __init__ (self, parent=None):
        QGroupBox.__init__(self, _("Operating System"), parent)
        self._Global_grid = QGridLayout(self)

        self._Arch_label = QLabel(_("Architecture"))
        self._Global_grid.addWidget(self._Arch_label, 0, 0)
        self._Arch_edit = NEBox()
        self._Global_grid.addWidget(self._Arch_edit, 0, 1)

        self._Kernel_label = QLabel(_("Kernel"))
        self._Global_grid.addWidget(self._Kernel_label, 1, 0)
        self._Kernel_edit = NEBox()
        self._Global_grid.addWidget(self._Kernel_edit, 1, 1)

        self._Dist_label = QLabel(_("Distribution"))
        self._Global_grid.addWidget(self._Dist_label, 2, 0)
        self._Dist_edit = NEBox()
        self._Global_grid.addWidget(self._Dist_edit, 2, 1)

        self._ComputerName_label = QLabel(_("Computer Name"))
        self._Global_grid.addWidget(self._ComputerName_label, 3, 0)
        self._ComputerName_edit = NEBox()
        self._Global_grid.addWidget(self._ComputerName_edit, 3, 1)

        self._libcVersion_label = QLabel(_("C Library"))
        self._Global_grid.addWidget(self._libcVersion_label, 4, 0)
        self._libcVersion_edit = NEBox()
        self._Global_grid.addWidget(self._libcVersion_edit, 4, 1)

        self._GCCVersion_label = QLabel(_("GCC Version"))
        self._Global_grid.addWidget(self._GCCVersion_label, 5, 0)
        self._GCCVersion_edit = NEBox()
        self._Global_grid.addWidget(self._GCCVersion_edit, 5, 1)

        self._XVersion_label = QLabel(_("Xorg Version"))
        self._Global_grid.addWidget(self._XVersion_label, 6, 0)
        self._XVersion_edit = NEBox()
        self._Global_grid.addWidget(self._XVersion_edit, 6, 1)

        self._QtVersion_label = QLabel(_("Qt4 Version"))
        self._Global_grid.addWidget(self._QtVersion_label, 7, 0)
        self._QtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._QtVersion_edit, 7, 1)

    def refresh (self):
        self._Arch_edit.setText(platform.machine())
        self._Kernel_edit.setText("%s %s" % \
                (platform.system(), platform.release()))
        self._Dist_edit.setText(" ".join(platform.linux_distribution()))
        self._ComputerName_edit.setText(platform.node())
        self._libcVersion_edit.setText(" ".join(platform.libc_ver()))
        self._GCCVersion_edit.setText(getGCCVersion())
        self._XVersion_edit.setText(getXorgVersion())
        self._QtVersion_edit.setText(qVersion())
Exemple #19
0
    def __init__(self, parent=None):
        QGroupBox.__init__(self, _("Operating System"), parent)
        self._Global_grid = QGridLayout(self)

        self._Arch_label = QLabel(_("Architecture"))
        self._Global_grid.addWidget(self._Arch_label, 0, 0)
        self._Arch_edit = NEBox()
        self._Global_grid.addWidget(self._Arch_edit, 0, 1)

        self._Kernel_label = QLabel(_("Kernel"))
        self._Global_grid.addWidget(self._Kernel_label, 1, 0)
        self._Kernel_edit = NEBox()
        self._Global_grid.addWidget(self._Kernel_edit, 1, 1)

        self._Dist_label = QLabel(_("Distribution"))
        self._Global_grid.addWidget(self._Dist_label, 2, 0)
        self._Dist_edit = NEBox()
        self._Global_grid.addWidget(self._Dist_edit, 2, 1)

        self._ComputerName_label = QLabel(_("Computer Name"))
        self._Global_grid.addWidget(self._ComputerName_label, 3, 0)
        self._ComputerName_edit = NEBox()
        self._Global_grid.addWidget(self._ComputerName_edit, 3, 1)

        self._libcVersion_label = QLabel(_("C Library"))
        self._Global_grid.addWidget(self._libcVersion_label, 4, 0)
        self._libcVersion_edit = NEBox()
        self._Global_grid.addWidget(self._libcVersion_edit, 4, 1)

        self._GCCVersion_label = QLabel(_("GCC Version"))
        self._Global_grid.addWidget(self._GCCVersion_label, 5, 0)
        self._GCCVersion_edit = NEBox()
        self._Global_grid.addWidget(self._GCCVersion_edit, 5, 1)

        self._XVersion_label = QLabel(_("Xorg Version"))
        self._Global_grid.addWidget(self._XVersion_label, 6, 0)
        self._XVersion_edit = NEBox()
        self._Global_grid.addWidget(self._XVersion_edit, 6, 1)

        self._QtVersion_label = QLabel(_("Qt4 Version"))
        self._Global_grid.addWidget(self._QtVersion_label, 7, 0)
        self._QtVersion_edit = NEBox()
        self._Global_grid.addWidget(self._QtVersion_edit, 7, 1)