Created GUI and converted to .py

This commit is contained in:
BarsTiger
2022-01-25 19:21:52 +02:00
parent 08b449d623
commit 0c137c2e04
5 changed files with 1316 additions and 110 deletions

View File

@@ -106,7 +106,7 @@ margin-top: 5px;
</string>
</property>
<property name="currentIndex">
<number>0</number>
<number>3</number>
</property>
<property name="documentMode">
<bool>true</bool>
@@ -166,6 +166,332 @@ QPushButton:disabled{
<string>Log in/Log out</string>
</property>
</widget>
<widget class="QLineEdit" name="username_box">
<property name="geometry">
<rect>
<x>720</x>
<y>70</y>
<width>151</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(74, 76, 83);
border-radius: 5px;
color: rgb(242, 242, 242);</string>
</property>
<property name="text">
<string/>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="placeholderText">
<string>Log in first</string>
</property>
</widget>
<widget class="QPushButton" name="changeemail_button">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>360</x>
<y>20</y>
<width>151</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
color: rgb(204, 204, 204);
border-width: 1px;
border-radius:6px;
border-style: solid;
background-color: rgb(28, 30, 33);
border-color: rgb(66, 143, 225);
}
QPushButton:hover{
border-width: 2px;
}
QPushButton:pressed{
background-color: rgb(50, 60, 63);
}
QPushButton:disabled{
border-width: 0px;
background-color: rgb(92, 99, 109);
}</string>
</property>
<property name="text">
<string>Change e-mail</string>
</property>
</widget>
<widget class="QTextEdit" name="email_box">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>341</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QTextEdit {
background-color: rgb(74, 76, 83);
border-radius: 5px;
color: rgb(242, 242, 242);
padding: 15px, 15px;
border: 15px white;
}</string>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextEditorInteraction</set>
</property>
<property name="placeholderText">
<string>email</string>
</property>
</widget>
<widget class="QTextEdit" name="oldpass_box">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>341</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QTextEdit {
background-color: rgb(74, 76, 83);
border-radius: 5px;
color: rgb(242, 242, 242);
padding: 15px, 15px;
border: 15px white;
}</string>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextEditorInteraction</set>
</property>
<property name="placeholderText">
<string>Old password</string>
</property>
</widget>
<widget class="QTextEdit" name="newpass_box">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>341</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QTextEdit {
background-color: rgb(74, 76, 83);
border-radius: 5px;
color: rgb(242, 242, 242);
padding: 15px, 15px;
border: 15px white;
}</string>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextEditorInteraction</set>
</property>
<property name="placeholderText">
<string>New password</string>
</property>
</widget>
<widget class="QPushButton" name="changepass_button">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>360</x>
<y>140</y>
<width>151</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
color: rgb(204, 204, 204);
border-width: 1px;
border-radius:6px;
border-style: solid;
background-color: rgb(28, 30, 33);
border-color: rgb(66, 143, 225);
}
QPushButton:hover{
border-width: 2px;
}
QPushButton:pressed{
background-color: rgb(50, 60, 63);
}
QPushButton:disabled{
border-width: 0px;
background-color: rgb(92, 99, 109);
}</string>
</property>
<property name="text">
<string>Change password</string>
</property>
</widget>
<widget class="QTableWidget" name="manage_packages_table">
<property name="geometry">
<rect>
<x>10</x>
<y>240</y>
<width>871</width>
<height>411</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QTableWidget
{
color: white;
font: 15pt &quot;MS Shell Dlg 2&quot;;
margin: 20px;
border-radius: 45px;
}
</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
</property>
<property name="autoScroll">
<bool>false</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="tabKeyNavigation">
<bool>false</bool>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="dragDropOverwriteMode">
<bool>false</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<property name="rowCount">
<number>1</number>
</property>
<property name="columnCount">
<number>4</number>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>203</number>
</attribute>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderMinimumSectionSize">
<number>150</number>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>120</number>
</attribute>
<attribute name="verticalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<row/>
<column/>
<column/>
<column/>
<column/>
<item row="0" column="0">
<property name="text">
<string/>
</property>
</item>
<item row="0" column="1">
<property name="text">
<string/>
</property>
</item>
</widget>
<widget class="QTextBrowser" name="manage_packages_message">
<property name="geometry">
<rect>
<x>380</x>
<y>230</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: white;
border: none;</string>
</property>
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Manage your packages&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::NoTextInteraction</set>
</property>
</widget>
</widget>
<widget class="QWidget" name="upload_tab">
<attribute name="title">
@@ -673,7 +999,7 @@ QPushButton:disabled{
</property>
<property name="geometry">
<rect>
<x>200</x>
<x>190</x>
<y>575</y>
<width>146</width>
<height>50</height>
@@ -715,7 +1041,7 @@ QPushButton:disabled{
</property>
<property name="geometry">
<rect>
<x>370</x>
<x>360</x>
<y>575</y>
<width>146</width>
<height>50</height>
@@ -860,7 +1186,7 @@ QPushButton:disabled{
<enum>Qt::LeftToRight</enum>
</property>
<attribute name="title">
<string>Installed apps</string>
<string>Installed</string>
</attribute>
<widget class="QPushButton" name="delete_button">
<property name="enabled">
@@ -1040,10 +1366,10 @@ border-radius: 45px;
<widget class="QLabel" name="horsy_text_lefttop">
<property name="geometry">
<rect>
<x>60</x>
<x>70</x>
<y>10</y>
<width>71</width>
<height>31</height>
<width>65</width>
<height>30</height>
</rect>
</property>
<property name="styleSheet">