Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wahab-hac authored Mar 31, 2022
0 parents commit cc1865e
Show file tree
Hide file tree
Showing 8 changed files with 1,502 additions and 0 deletions.
103 changes: 103 additions & 0 deletions Reseller Panel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
########################################################################################################################
#Python Modules
########################################################################################################################
import sys
import time

from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QDialog, QApplication, QSplashScreen
from PyQt5.uic import loadUi
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPixmap
########################################################################################################################
#Splash Screens
########################################################################################################################
class SplashScreen(QSplashScreen):
def __init__(self):
super(SplashScreen, self).__init__()
self.setWindowTitle("splash screen")
self.setFixedSize(640,426)

loadUi("Paway UI files/Splash.ui", self)
self.setWindowFlag(Qt.FramelessWindowHint)
self.setAttribute(Qt.WA_TranslucentBackground)
pixmap=QPixmap("Paway Images/Splash.jpg")
self.setPixmap(pixmap)

def progress(self):
for i in range (101):
time.sleep(0.01)
self.progressBar.setValue(i)

########################################################################################################################
#Welcome_Screen
########################################################################################################################
class Welcome(QDialog):
def __init__(self):
super(Welcome, self).__init__()
loadUi("Paway UI files/welcome.ui", self)
self.loginButton.clicked.connect(self.login_screen_fun)
self.signupButton.clicked.connect(self.signup_screen_fun)
def login_screen_fun(self):
login_obj = Login()
widget.addWidget(login_obj)
widget.setCurrentIndex(widget.currentIndex()+1)
def signup_screen_fun(self):
signup_obj = Signup()
widget.addWidget(signup_obj)
widget.setCurrentIndex(widget.currentIndex() + 1)




########################################################################################################################
#Reseller login
########################################################################################################################
class Login(QDialog):
def __init__(self):
super(Login, self).__init__()
loadUi("Paway UI files/reseller login.ui",self)
self.back.clicked.connect(self.back_to_welcomeScreen)
def back_to_welcomeScreen(self):
welcome_obj = Welcome()
widget.addWidget(welcome_obj)
widget.setCurrentIndex(widget.currentIndex() - 1)
########################################################################################################################
#Reseller Signup
########################################################################################################################
class Signup(QDialog):
def __init__(self):
super(Signup, self).__init__()
loadUi("Paway UI files/reseller signup.ui",self)
self.loginButton.clicked.connect(self.login_screen_fun)
self.back.clicked.connect(self.back_to_welcomeScreen)
def back_to_welcomeScreen(self):
welcome_obj = Welcome()
widget.addWidget(welcome_obj)
widget.setCurrentIndex(widget.currentIndex() - 1)

def login_screen_fun(self):
login_obj = Login()
widget.addWidget(login_obj)
widget.setCurrentIndex(widget.currentIndex() + 1)

########################################################################################################################
#Main
########################################################################################################################
if __name__ == '__main__':
app = QApplication(sys.argv)
splash = SplashScreen()
splash.show()
splash.progress()
welcome_obj = Welcome()

widget=QtWidgets.QStackedWidget()
widget.addWidget(welcome_obj)

widget.setFixedWidth(1200)
widget.setFixedHeight(650)
widget.show()


splash.finish(widget)
app.exec_()
Binary file added Splash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions Splash.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>640</width>
<height>426</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QProgressBar" name="progressBar">
<property name="geometry">
<rect>
<x>90</x>
<y>330</y>
<width>481</width>
<height>61</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar{
border-radius:30px;
background-color: rgb(61, 90, 255);
}
QProgressBar::chunk{
border-radius:30px;

background-color: rgb(8, 14, 125);
}</string>
</property>
<property name="value">
<number>24</number>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>100</x>
<y>110</y>
<width>471</width>
<height>121</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 35pt &quot;MS Shell Dlg 2&quot;;
color: rgb(61, 90, 255);
color: rgb(0, 255, 255);</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:48pt; font-weight:600; color:#5067ff;&quot;&gt;Reseller Panel&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>60</x>
<y>30</y>
<width>251</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(36, 58, 141);
font: italic 28pt &quot;Constantia&quot;;
</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; font-style:normal; color:#ffffff;&quot;&gt;Mango Family&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>290</x>
<y>80</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 8pt &quot;MS Shell Dlg 2&quot;;
color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt; color:#ffffff;&quot;&gt;Presents&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>270</x>
<y>350</y>
<width>111</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:14pt; font-weight:600; color:#ffffff;&quot;&gt;Loading...&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
Loading

0 comments on commit cc1865e

Please sign in to comment.