mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-01 15:40:16 +00:00
Improvement
This commit is contained in:
parent
73f3799024
commit
0ba7dc0de4
@ -351,7 +351,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>:/icon_uninstall</normaloff>:/icon_uninstall</iconset>
|
||||
<normaloff>:/icon_uninstall</normaloff>:/icon_uninstall</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
@ -374,7 +374,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>:/icon_install</normaloff>:/icon_install</iconset>
|
||||
<normaloff>:/icon_install</normaloff>:/icon_install</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
@ -548,7 +548,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<spacer name="verticalSpacer_5">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
@ -560,6 +560,16 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label_waning">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p align="justify"><span style=" font-weight:600; color:#ff0000;">WARNING</span> : Any bootable USB made using<span style=" font-weight:600;"> ISO Imager will destroy all data </span>on the selected USB disk. </p><p align="justify">Use it at your own risk. Developers are not responsile for loss of any data.</p></body></html></string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
@ -935,7 +945,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>629</width>
|
||||
<height>19</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="nativeMenuBar">
|
||||
|
@ -20,7 +20,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_3">
|
||||
<property name="enabled">
|
||||
|
@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'gui/multibootusb.ui'
|
||||
# Form implementation generated from reading ui file 'multibootusb.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.5.1
|
||||
# Created by: PyQt5 UI code generator 5.6
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
@ -233,11 +233,15 @@ class Ui_MainWindow(object):
|
||||
self.gridLayout_9.addItem(spacerItem2, 0, 1, 1, 1)
|
||||
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||||
self.gridLayout_9.addItem(spacerItem3, 2, 1, 1, 1)
|
||||
self.label_6 = QtWidgets.QLabel(self.tab_imager)
|
||||
self.label_6.setObjectName("label_6")
|
||||
self.gridLayout_9.addWidget(self.label_6, 3, 0, 1, 3)
|
||||
self.horizontalLayout_7.addLayout(self.gridLayout_9)
|
||||
self.tabWidget.addTab(self.tab_imager, "")
|
||||
self.tab_syslinux = QtWidgets.QWidget()
|
||||
self.tab_syslinux.setObjectName("tab_syslinux")
|
||||
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_syslinux)
|
||||
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
self.gridLayout_2 = QtWidgets.QGridLayout()
|
||||
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||
@ -286,6 +290,7 @@ class Ui_MainWindow(object):
|
||||
self.tab_testboot = QtWidgets.QWidget()
|
||||
self.tab_testboot.setObjectName("tab_testboot")
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_testboot)
|
||||
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.gridLayout_6 = QtWidgets.QGridLayout()
|
||||
self.gridLayout_6.setContentsMargins(-1, 10, -1, -1)
|
||||
@ -364,7 +369,7 @@ class Ui_MainWindow(object):
|
||||
self.verticalLayout_7.addWidget(self.progressbar)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 629, 19))
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 629, 21))
|
||||
self.menubar.setNativeMenuBar(True)
|
||||
self.menubar.setObjectName("menubar")
|
||||
self.menuFile = QtWidgets.QMenu(self.menubar)
|
||||
@ -415,6 +420,7 @@ class Ui_MainWindow(object):
|
||||
self.label_persistence_value.setText(_translate("MainWindow", "0 MB"))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_multibootusb), _translate("MainWindow", "MultiBootUSB"))
|
||||
self.button_write_image_to_disk.setText(_translate("MainWindow", "Write image to USB"))
|
||||
self.label_6.setText(_translate("MainWindow", "<html><head/><body><p align=\"justify\"><span style=\" font-weight:600; color:#ff0000;\">WARNING</span> : Any bootable USB made using<span style=\" font-weight:600;\"> ISO Imager will destroy all data </span>on the selected USB disk. </p><p align=\"justify\">Use it at your own risk. Developers are not responsile for loss of any data.</p></body></html>"))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_imager), _translate("MainWindow", "Write Image to disk"))
|
||||
self.groupBox_2.setTitle(_translate("MainWindow", "Install Syslinux"))
|
||||
self.check_install_sys_only.setText(_translate("MainWindow", "Install only syslinu&x (existing configurations will not be altered)."))
|
||||
@ -450,3 +456,13 @@ class Ui_MainWindow(object):
|
||||
self.action_Quit.setText(_translate("MainWindow", "&Quit"))
|
||||
self.action_About.setText(_translate("MainWindow", "&About"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
MainWindow = QtWidgets.QMainWindow()
|
||||
ui = Ui_MainWindow()
|
||||
ui.setupUi(MainWindow)
|
||||
MainWindow.show()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
|
@ -75,10 +75,10 @@ def iso_install(iso_image):
|
||||
_distro = distro(iso_cfg_ext_dir(), iso_image)
|
||||
if _distro is not None:
|
||||
log('Initiating installation process for ' + iso.iso_basename(iso_image))
|
||||
log('Detected distro type is :' + _distro)
|
||||
log('\nSelected ISO is :' + quote(iso_name(iso_image)))
|
||||
log('Selected target device is :' + quote(config.usb_disk), '\n')
|
||||
if config.yes is not True:
|
||||
log('Detected distro type is :' + _distro)
|
||||
log('\nSelected ISO is :' + quote(iso_name(iso_image)))
|
||||
log('Selected target device is :' + quote(config.usb_disk), '\n')
|
||||
log('Please confirm the option.')
|
||||
log('Y/y/Yes/yes/YES or N/n/No/no/NO')
|
||||
if read_input_yes() is True:
|
||||
@ -100,7 +100,6 @@ def iso_install(iso_image):
|
||||
syslinux_default(config.usb_disk)
|
||||
update_distro_cfg_files(iso_image, config.usb_disk, _distro)
|
||||
log('Finished installing ' + iso.iso_basename(iso_image))
|
||||
|
||||
else:
|
||||
log('\n\nSorry ' + iso_name(iso_image) + ' is not supported at the moment.\n'
|
||||
'Please report tissue at https://github.com/mbusb/multibootusb/issues\n')
|
||||
|
Loading…
Reference in New Issue
Block a user