diff --git a/form.py b/form.py
new file mode 100644
index 0000000..3024748
--- /dev/null
+++ b/form.py
@@ -0,0 +1,262 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'form.ui'
+#
+# Created: Fri Mar 28 15:05:52 2014
+# by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+ _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+ def _fromUtf8(s):
+ return s
+
+try:
+ _encoding = QtGui.QApplication.UnicodeUTF8
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_MainWindow(object):
+ def setupUi(self, MainWindow):
+ MainWindow.setObjectName(_fromUtf8("MainWindow"))
+ MainWindow.resize(689, 480)
+ self.centralwidget = QtGui.QWidget(MainWindow)
+ self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
+ self.mode = QtGui.QComboBox(self.centralwidget)
+ self.mode.setGeometry(QtCore.QRect(50, 70, 231, 22))
+ self.mode.setObjectName(_fromUtf8("mode"))
+ self.mode.addItem(_fromUtf8(""))
+ self.mode.addItem(_fromUtf8(""))
+ self.mode.addItem(_fromUtf8(""))
+ self.frame_2 = QtGui.QFrame(self.centralwidget)
+ self.frame_2.setGeometry(QtCore.QRect(360, 10, 311, 421))
+ self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_2.setObjectName(_fromUtf8("frame_2"))
+ self.frame_user = QtGui.QFrame(self.frame_2)
+ self.frame_user.setEnabled(False)
+ self.frame_user.setGeometry(QtCore.QRect(10, 230, 291, 181))
+ self.frame_user.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_user.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_user.setObjectName(_fromUtf8("frame_user"))
+ self.edit_name = QtGui.QLineEdit(self.frame_user)
+ self.edit_name.setGeometry(QtCore.QRect(60, 10, 191, 20))
+ self.edit_name.setObjectName(_fromUtf8("edit_name"))
+ self.label_5 = QtGui.QLabel(self.frame_user)
+ self.label_5.setGeometry(QtCore.QRect(10, 10, 46, 13))
+ self.label_5.setObjectName(_fromUtf8("label_5"))
+ self.tabWidget = QtGui.QTabWidget(self.frame_user)
+ self.tabWidget.setGeometry(QtCore.QRect(0, 40, 291, 141))
+ self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
+ self.tab = QtGui.QWidget()
+ self.tab.setObjectName(_fromUtf8("tab"))
+ self.edit_ip = QtGui.QLineEdit(self.tab)
+ self.edit_ip.setGeometry(QtCore.QRect(50, 10, 211, 20))
+ self.edit_ip.setObjectName(_fromUtf8("edit_ip"))
+ self.label_6 = QtGui.QLabel(self.tab)
+ self.label_6.setGeometry(QtCore.QRect(10, 10, 46, 13))
+ self.label_6.setObjectName(_fromUtf8("label_6"))
+ self.save_person = QtGui.QPushButton(self.tab)
+ self.save_person.setGeometry(QtCore.QRect(190, 80, 75, 23))
+ self.save_person.setObjectName(_fromUtf8("save_person"))
+ self.tabWidget.addTab(self.tab, _fromUtf8(""))
+ self.tab_2 = QtGui.QWidget()
+ self.tab_2.setObjectName(_fromUtf8("tab_2"))
+ self.pc_period = QtGui.QDoubleSpinBox(self.tab_2)
+ self.pc_period.setGeometry(QtCore.QRect(131, 20, 121, 22))
+ self.pc_period.setMaximum(100.0)
+ self.pc_period.setSingleStep(0.5)
+ self.pc_period.setProperty("value", 5.0)
+ self.pc_period.setObjectName(_fromUtf8("pc_period"))
+ self.label_7 = QtGui.QLabel(self.tab_2)
+ self.label_7.setGeometry(QtCore.QRect(20, 20, 46, 13))
+ self.label_7.setObjectName(_fromUtf8("label_7"))
+ self.pc_command = QtGui.QComboBox(self.tab_2)
+ self.pc_command.setGeometry(QtCore.QRect(130, 60, 121, 22))
+ self.pc_command.setObjectName(_fromUtf8("pc_command"))
+ self.pc_command.addItem(_fromUtf8(""))
+ self.pc_command.addItem(_fromUtf8(""))
+ self.pc_command.addItem(_fromUtf8(""))
+ self.label_8 = QtGui.QLabel(self.tab_2)
+ self.label_8.setGeometry(QtCore.QRect(20, 60, 61, 16))
+ self.label_8.setObjectName(_fromUtf8("label_8"))
+ self.save_pc = QtGui.QPushButton(self.tab_2)
+ self.save_pc.setGeometry(QtCore.QRect(200, 90, 75, 23))
+ self.save_pc.setObjectName(_fromUtf8("save_pc"))
+ self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
+ self.random_name = QtGui.QPushButton(self.frame_user)
+ self.random_name.setGeometry(QtCore.QRect(260, 10, 21, 23))
+ self.random_name.setObjectName(_fromUtf8("random_name"))
+ self.lst_del = QtGui.QPushButton(self.frame_2)
+ self.lst_del.setGeometry(QtCore.QRect(280, 90, 21, 23))
+ self.lst_del.setObjectName(_fromUtf8("lst_del"))
+ self.label_2 = QtGui.QLabel(self.frame_2)
+ self.label_2.setGeometry(QtCore.QRect(10, 10, 71, 16))
+ self.label_2.setObjectName(_fromUtf8("label_2"))
+ self.lst_add = QtGui.QPushButton(self.frame_2)
+ self.lst_add.setGeometry(QtCore.QRect(280, 30, 21, 23))
+ self.lst_add.setObjectName(_fromUtf8("lst_add"))
+ self.lst_edit = QtGui.QPushButton(self.frame_2)
+ self.lst_edit.setGeometry(QtCore.QRect(280, 60, 21, 23))
+ self.lst_edit.setObjectName(_fromUtf8("lst_edit"))
+ self.table_user = QtGui.QTreeWidget(self.frame_2)
+ self.table_user.setGeometry(QtCore.QRect(10, 30, 261, 191))
+ self.table_user.setObjectName(_fromUtf8("table_user"))
+ self.frame_3 = QtGui.QFrame(self.centralwidget)
+ self.frame_3.setGeometry(QtCore.QRect(40, 100, 261, 101))
+ self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_3.setObjectName(_fromUtf8("frame_3"))
+ self.label = QtGui.QLabel(self.frame_3)
+ self.label.setGeometry(QtCore.QRect(10, 10, 46, 13))
+ self.label.setObjectName(_fromUtf8("label"))
+ self.time_democracy = QtGui.QDoubleSpinBox(self.frame_3)
+ self.time_democracy.setGeometry(QtCore.QRect(120, 40, 121, 22))
+ self.time_democracy.setMaximum(100.0)
+ self.time_democracy.setSingleStep(0.5)
+ self.time_democracy.setProperty("value", 5.0)
+ self.time_democracy.setObjectName(_fromUtf8("time_democracy"))
+ self.label_3 = QtGui.QLabel(self.frame_3)
+ self.label_3.setGeometry(QtCore.QRect(10, 40, 91, 16))
+ self.label_3.setObjectName(_fromUtf8("label_3"))
+ self.time_delay = QtGui.QDoubleSpinBox(self.frame_3)
+ self.time_delay.setGeometry(QtCore.QRect(121, 10, 121, 22))
+ self.time_delay.setMaximum(100.0)
+ self.time_delay.setSingleStep(0.5)
+ self.time_delay.setObjectName(_fromUtf8("time_delay"))
+ self.label_4 = QtGui.QLabel(self.frame_3)
+ self.label_4.setGeometry(QtCore.QRect(10, 70, 91, 16))
+ self.label_4.setObjectName(_fromUtf8("label_4"))
+ self.time_raffle = QtGui.QDoubleSpinBox(self.frame_3)
+ self.time_raffle.setGeometry(QtCore.QRect(120, 70, 121, 22))
+ self.time_raffle.setMaximum(100.0)
+ self.time_raffle.setSingleStep(0.5)
+ self.time_raffle.setProperty("value", 1.0)
+ self.time_raffle.setObjectName(_fromUtf8("time_raffle"))
+ self.frame_4 = QtGui.QFrame(self.centralwidget)
+ self.frame_4.setGeometry(QtCore.QRect(40, 210, 261, 111))
+ self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_4.setObjectName(_fromUtf8("frame_4"))
+ self.checkBox = QtGui.QCheckBox(self.frame_4)
+ self.checkBox.setGeometry(QtCore.QRect(10, 10, 151, 17))
+ self.checkBox.setObjectName(_fromUtf8("checkBox"))
+ self.frame_5 = QtGui.QFrame(self.frame_4)
+ self.frame_5.setEnabled(False)
+ self.frame_5.setGeometry(QtCore.QRect(0, 30, 261, 81))
+ self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_5.setObjectName(_fromUtf8("frame_5"))
+ self.interval_democracy = QtGui.QDoubleSpinBox(self.frame_5)
+ self.interval_democracy.setGeometry(QtCore.QRect(120, 10, 121, 22))
+ self.interval_democracy.setMaximum(100.0)
+ self.interval_democracy.setSingleStep(0.5)
+ self.interval_democracy.setProperty("value", 20.0)
+ self.interval_democracy.setObjectName(_fromUtf8("interval_democracy"))
+ self.label_9 = QtGui.QLabel(self.frame_5)
+ self.label_9.setGeometry(QtCore.QRect(10, 10, 91, 16))
+ self.label_9.setObjectName(_fromUtf8("label_9"))
+ self.duration_democracy = QtGui.QDoubleSpinBox(self.frame_5)
+ self.duration_democracy.setGeometry(QtCore.QRect(120, 50, 121, 22))
+ self.duration_democracy.setMaximum(100.0)
+ self.duration_democracy.setSingleStep(0.5)
+ self.duration_democracy.setProperty("value", 5.0)
+ self.duration_democracy.setObjectName(_fromUtf8("duration_democracy"))
+ self.label_10 = QtGui.QLabel(self.frame_5)
+ self.label_10.setGeometry(QtCore.QRect(10, 50, 91, 16))
+ self.label_10.setObjectName(_fromUtf8("label_10"))
+ self.line = QtGui.QFrame(self.centralwidget)
+ self.line.setGeometry(QtCore.QRect(312, 10, 21, 421))
+ self.line.setFrameShape(QtGui.QFrame.VLine)
+ self.line.setFrameShadow(QtGui.QFrame.Sunken)
+ self.line.setObjectName(_fromUtf8("line"))
+ self.frame_6 = QtGui.QFrame(self.centralwidget)
+ self.frame_6.setGeometry(QtCore.QRect(40, 340, 261, 71))
+ self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_6.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_6.setObjectName(_fromUtf8("frame_6"))
+ self.box_hold_button = QtGui.QCheckBox(self.frame_6)
+ self.box_hold_button.setGeometry(QtCore.QRect(10, 10, 111, 17))
+ self.box_hold_button.setObjectName(_fromUtf8("box_hold_button"))
+ self.time_button_hold = QtGui.QDoubleSpinBox(self.frame_6)
+ self.time_button_hold.setGeometry(QtCore.QRect(120, 10, 121, 22))
+ self.time_button_hold.setMaximum(100.0)
+ self.time_button_hold.setSingleStep(0.01)
+ self.time_button_hold.setProperty("value", 0.05)
+ self.time_button_hold.setObjectName(_fromUtf8("time_button_hold"))
+ self.connection = QtGui.QLabel(self.centralwidget)
+ self.connection.setGeometry(QtCore.QRect(210, 20, 91, 16))
+ self.connection.setObjectName(_fromUtf8("connection"))
+ self.activate = QtGui.QCheckBox(self.centralwidget)
+ self.activate.setGeometry(QtCore.QRect(50, 20, 70, 17))
+ self.activate.setObjectName(_fromUtf8("activate"))
+ MainWindow.setCentralWidget(self.centralwidget)
+ self.menubar = QtGui.QMenuBar(MainWindow)
+ self.menubar.setGeometry(QtCore.QRect(0, 0, 689, 21))
+ self.menubar.setObjectName(_fromUtf8("menubar"))
+ MainWindow.setMenuBar(self.menubar)
+ self.statusbar = QtGui.QStatusBar(MainWindow)
+ self.statusbar.setObjectName(_fromUtf8("statusbar"))
+ MainWindow.setStatusBar(self.statusbar)
+
+ self.retranslateUi(MainWindow)
+ self.tabWidget.setCurrentIndex(0)
+ QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.frame_5.setEnabled)
+ QtCore.QMetaObject.connectSlotsByName(MainWindow)
+ MainWindow.setTabOrder(self.lst_edit, self.lst_add)
+ MainWindow.setTabOrder(self.lst_add, self.time_democracy)
+ MainWindow.setTabOrder(self.time_democracy, self.mode)
+ MainWindow.setTabOrder(self.mode, self.time_delay)
+ MainWindow.setTabOrder(self.time_delay, self.lst_del)
+ MainWindow.setTabOrder(self.lst_del, self.time_raffle)
+ MainWindow.setTabOrder(self.time_raffle, self.tabWidget)
+ MainWindow.setTabOrder(self.tabWidget, self.edit_ip)
+ MainWindow.setTabOrder(self.edit_ip, self.pc_period)
+ MainWindow.setTabOrder(self.pc_period, self.pc_command)
+ MainWindow.setTabOrder(self.pc_command, self.save_pc)
+ MainWindow.setTabOrder(self.save_pc, self.save_person)
+ MainWindow.setTabOrder(self.save_person, self.checkBox)
+ MainWindow.setTabOrder(self.checkBox, self.interval_democracy)
+ MainWindow.setTabOrder(self.interval_democracy, self.duration_democracy)
+ MainWindow.setTabOrder(self.duration_democracy, self.edit_name)
+
+ def retranslateUi(self, MainWindow):
+ MainWindow.setWindowTitle(_translate("MainWindow", "Private Twitch Controller Server", None))
+ self.mode.setItemText(0, _translate("MainWindow", "Anarchy", None))
+ self.mode.setItemText(1, _translate("MainWindow", "Democracy", None))
+ self.mode.setItemText(2, _translate("MainWindow", "Raffle", None))
+ self.label_5.setText(_translate("MainWindow", "Name", None))
+ self.label_6.setText(_translate("MainWindow", "IP", None))
+ self.save_person.setText(_translate("MainWindow", "Save", None))
+ self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Person", None))
+ self.label_7.setText(_translate("MainWindow", "Period", None))
+ self.pc_command.setItemText(0, _translate("MainWindow", "Random", None))
+ self.pc_command.setItemText(1, _translate("MainWindow", "Positive", None))
+ self.pc_command.setItemText(2, _translate("MainWindow", "Negative", None))
+ self.label_8.setText(_translate("MainWindow", "Commands", None))
+ self.save_pc.setText(_translate("MainWindow", "Save", None))
+ self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "PC", None))
+ self.random_name.setText(_translate("MainWindow", "R", None))
+ self.lst_del.setText(_translate("MainWindow", "-", None))
+ self.label_2.setText(_translate("MainWindow", "Players", None))
+ self.lst_add.setText(_translate("MainWindow", "+", None))
+ self.lst_edit.setText(_translate("MainWindow", "E", None))
+ self.table_user.headerItem().setText(0, _translate("MainWindow", "Name", None))
+ self.table_user.headerItem().setText(1, _translate("MainWindow", "CMD", None))
+ self.label.setText(_translate("MainWindow", "Delay", None))
+ self.label_3.setText(_translate("MainWindow", "Democracy Time", None))
+ self.label_4.setText(_translate("MainWindow", "Raffle Time", None))
+ self.checkBox.setText(_translate("MainWindow", "Automatic Democracy", None))
+ self.label_9.setText(_translate("MainWindow", "Interval (min)", None))
+ self.label_10.setText(_translate("MainWindow", "Duration (min)", None))
+ self.box_hold_button.setText(_translate("MainWindow", "Click Buttons", None))
+ self.connection.setText(_translate("MainWindow", "Not Connected...", None))
+ self.activate.setText(_translate("MainWindow", "Enable", None))
+
diff --git a/form.ui b/form.ui
new file mode 100644
index 0000000..5337473
--- /dev/null
+++ b/form.ui
@@ -0,0 +1,686 @@
+
+
+ MainWindow
+
+
+
+ 0
+ 0
+ 689
+ 480
+
+
+
+ Private Twitch Controller Server
+
+
+
+
+
+ 50
+ 70
+ 231
+ 22
+
+
+ -
+
+ Anarchy
+
+
+ -
+
+ Democracy
+
+
+ -
+
+ Raffle
+
+
+
+
+
+
+ 360
+ 10
+ 311
+ 421
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+ false
+
+
+
+ 10
+ 230
+ 291
+ 181
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 60
+ 10
+ 191
+ 20
+
+
+
+
+
+
+ 10
+ 10
+ 46
+ 13
+
+
+
+ Name
+
+
+
+
+
+ 0
+ 40
+ 291
+ 141
+
+
+
+ 0
+
+
+
+ Person
+
+
+
+
+ 50
+ 10
+ 211
+ 20
+
+
+
+
+
+
+ 10
+ 10
+ 46
+ 13
+
+
+
+ IP
+
+
+
+
+
+ 190
+ 80
+ 75
+ 23
+
+
+
+ Save
+
+
+
+
+
+ PC
+
+
+
+
+ 131
+ 20
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+ 5.000000000000000
+
+
+
+
+
+ 20
+ 20
+ 46
+ 13
+
+
+
+ Period
+
+
+
+
+
+ 130
+ 60
+ 121
+ 22
+
+
+ -
+
+ Random
+
+
+ -
+
+ Positive
+
+
+ -
+
+ Negative
+
+
+
+
+
+
+ 20
+ 60
+ 61
+ 16
+
+
+
+ Commands
+
+
+
+
+
+ 200
+ 90
+ 75
+ 23
+
+
+
+ Save
+
+
+
+
+
+
+
+ 260
+ 10
+ 21
+ 23
+
+
+
+ R
+
+
+
+
+
+
+ 280
+ 90
+ 21
+ 23
+
+
+
+ -
+
+
+
+
+
+ 10
+ 10
+ 71
+ 16
+
+
+
+ Players
+
+
+
+
+
+ 280
+ 30
+ 21
+ 23
+
+
+
+ +
+
+
+
+
+
+ 280
+ 60
+ 21
+ 23
+
+
+
+ E
+
+
+
+
+
+ 10
+ 30
+ 261
+ 191
+
+
+
+
+ Name
+
+
+
+
+ CMD
+
+
+
+
+
+
+
+ 40
+ 100
+ 261
+ 101
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 10
+ 10
+ 46
+ 13
+
+
+
+ Delay
+
+
+
+
+
+ 120
+ 40
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+ 5.000000000000000
+
+
+
+
+
+ 10
+ 40
+ 91
+ 16
+
+
+
+ Democracy Time
+
+
+
+
+
+ 121
+ 10
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+
+
+
+ 10
+ 70
+ 91
+ 16
+
+
+
+ Raffle Time
+
+
+
+
+
+ 120
+ 70
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+ 1.000000000000000
+
+
+
+
+
+
+ 40
+ 210
+ 261
+ 111
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 10
+ 10
+ 151
+ 17
+
+
+
+ Automatic Democracy
+
+
+
+
+ false
+
+
+
+ 0
+ 30
+ 261
+ 81
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 120
+ 10
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+ 20.000000000000000
+
+
+
+
+
+ 10
+ 10
+ 91
+ 16
+
+
+
+ Interval (min)
+
+
+
+
+
+ 120
+ 50
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.500000000000000
+
+
+ 5.000000000000000
+
+
+
+
+
+ 10
+ 50
+ 91
+ 16
+
+
+
+ Duration (min)
+
+
+
+
+
+
+
+ 312
+ 10
+ 21
+ 421
+
+
+
+ Qt::Vertical
+
+
+
+
+
+ 40
+ 340
+ 261
+ 71
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 10
+ 10
+ 111
+ 17
+
+
+
+ Click Buttons
+
+
+
+
+
+ 120
+ 10
+ 121
+ 22
+
+
+
+ 100.000000000000000
+
+
+ 0.010000000000000
+
+
+ 0.050000000000000
+
+
+
+
+
+
+ 210
+ 20
+ 91
+ 16
+
+
+
+ Not Connected...
+
+
+
+
+
+ 50
+ 20
+ 70
+ 17
+
+
+
+ Enable
+
+
+
+
+
+
+
+ lst_edit
+ lst_add
+ time_democracy
+ mode
+ time_delay
+ lst_del
+ time_raffle
+ tabWidget
+ edit_ip
+ pc_period
+ pc_command
+ save_pc
+ save_person
+ checkBox
+ interval_democracy
+ duration_democracy
+ edit_name
+
+
+
+
+ checkBox
+ toggled(bool)
+ frame_5
+ setEnabled(bool)
+
+
+ 67
+ 249
+
+
+ 40
+ 270
+
+
+
+
+
diff --git a/form_cmd.py b/form_cmd.py
new file mode 100644
index 0000000..9c677b0
--- /dev/null
+++ b/form_cmd.py
@@ -0,0 +1,102 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'form_cmd.ui'
+#
+# Created: Fri Mar 28 15:05:52 2014
+# by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+ _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+ def _fromUtf8(s):
+ return s
+
+try:
+ _encoding = QtGui.QApplication.UnicodeUTF8
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_MainWindow(object):
+ def setupUi(self, MainWindow):
+ MainWindow.setObjectName(_fromUtf8("MainWindow"))
+ MainWindow.resize(349, 611)
+ font = QtGui.QFont()
+ font.setFamily(_fromUtf8("Consolas"))
+ MainWindow.setFont(font)
+ self.centralwidget = QtGui.QWidget(MainWindow)
+ self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
+ self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
+ self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
+ self.frame = QtGui.QFrame(self.centralwidget)
+ self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame.setObjectName(_fromUtf8("frame"))
+ self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame)
+ self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
+ self.frame_2 = QtGui.QFrame(self.frame)
+ self.frame_2.setMinimumSize(QtCore.QSize(311, 43))
+ self.frame_2.setMaximumSize(QtCore.QSize(311, 43))
+ self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame_2.setObjectName(_fromUtf8("frame_2"))
+ self.l_mode = QtGui.QLabel(self.frame_2)
+ self.l_mode.setGeometry(QtCore.QRect(10, 10, 281, 23))
+ font = QtGui.QFont()
+ font.setPointSize(16)
+ self.l_mode.setFont(font)
+ self.l_mode.setObjectName(_fromUtf8("l_mode"))
+ self.verticalLayout_3.addWidget(self.frame_2)
+ self.f_democracy = QtGui.QFrame(self.frame)
+ self.f_democracy.setMinimumSize(QtCore.QSize(311, 0))
+ self.f_democracy.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.f_democracy.setFrameShadow(QtGui.QFrame.Raised)
+ self.f_democracy.setObjectName(_fromUtf8("f_democracy"))
+ self.verticalLayout_2 = QtGui.QVBoxLayout(self.f_democracy)
+ self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
+ self.l_democracy = QtGui.QLabel(self.f_democracy)
+ font = QtGui.QFont()
+ font.setPointSize(14)
+ self.l_democracy.setFont(font)
+ self.l_democracy.setObjectName(_fromUtf8("l_democracy"))
+ self.verticalLayout_2.addWidget(self.l_democracy)
+ self.verticalLayout_3.addWidget(self.f_democracy)
+ self.f_anarchy = QtGui.QFrame(self.frame)
+ self.f_anarchy.setMinimumSize(QtCore.QSize(311, 0))
+ self.f_anarchy.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.f_anarchy.setFrameShadow(QtGui.QFrame.Raised)
+ self.f_anarchy.setObjectName(_fromUtf8("f_anarchy"))
+ self.verticalLayout = QtGui.QVBoxLayout(self.f_anarchy)
+ self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
+ self.l_anarchy = QtGui.QLabel(self.f_anarchy)
+ font = QtGui.QFont()
+ font.setPointSize(12)
+ self.l_anarchy.setFont(font)
+ self.l_anarchy.setObjectName(_fromUtf8("l_anarchy"))
+ self.verticalLayout.addWidget(self.l_anarchy)
+ self.verticalLayout_3.addWidget(self.f_anarchy)
+ self.horizontalLayout.addWidget(self.frame)
+ MainWindow.setCentralWidget(self.centralwidget)
+ self.menubar = QtGui.QMenuBar(MainWindow)
+ self.menubar.setGeometry(QtCore.QRect(0, 0, 349, 20))
+ self.menubar.setObjectName(_fromUtf8("menubar"))
+ MainWindow.setMenuBar(self.menubar)
+ self.statusbar = QtGui.QStatusBar(MainWindow)
+ self.statusbar.setObjectName(_fromUtf8("statusbar"))
+ MainWindow.setStatusBar(self.statusbar)
+
+ self.retranslateUi(MainWindow)
+ QtCore.QMetaObject.connectSlotsByName(MainWindow)
+
+ def retranslateUi(self, MainWindow):
+ MainWindow.setWindowTitle(_translate("MainWindow", "Commands", None))
+ self.l_mode.setText(_translate("MainWindow", "Mode", None))
+ self.l_democracy.setText(_translate("MainWindow", "Democracy cmds", None))
+ self.l_anarchy.setText(_translate("MainWindow", "All cmds", None))
+
diff --git a/form_cmd.ui b/form_cmd.ui
new file mode 100644
index 0000000..7eee606
--- /dev/null
+++ b/form_cmd.ui
@@ -0,0 +1,151 @@
+
+
+ MainWindow
+
+
+
+ 0
+ 0
+ 349
+ 611
+
+
+
+
+ Consolas
+
+
+
+ Commands
+
+
+
+ -
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 311
+ 43
+
+
+
+
+ 311
+ 43
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 10
+ 10
+ 281
+ 23
+
+
+
+
+ 16
+
+
+
+ Mode
+
+
+
+
+ -
+
+
+
+ 311
+ 0
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 14
+
+
+
+ Democracy cmds
+
+
+
+
+
+
+ -
+
+
+
+ 311
+ 0
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 12
+
+
+
+ All cmds
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/generate.bat b/generate.bat
new file mode 100644
index 0000000..61dfdae
--- /dev/null
+++ b/generate.bat
@@ -0,0 +1,2 @@
+@"C:\Python33\python" "C:\Python33\Lib\site-packages\PyQt4\uic\pyuic.py" form.ui > form.py
+@"C:\Python33\python" "C:\Python33\Lib\site-packages\PyQt4\uic\pyuic.py" form_cmd.ui > form_cmd.py
\ No newline at end of file