-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cc1865e
Showing
8 changed files
with
1,502 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "MS Shell Dlg 2"; | ||
color: rgb(61, 90, 255); | ||
color: rgb(0, 255, 255);</string> | ||
</property> | ||
<property name="text"> | ||
<string><html><head/><body><p><span style=" font-size:48pt; font-weight:600; color:#5067ff;">Reseller Panel</span></p></body></html></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 "Constantia"; | ||
</string> | ||
</property> | ||
<property name="text"> | ||
<string><html><head/><body><p><span style=" font-weight:600; font-style:normal; color:#ffffff;">Mango Family</span></p></body></html></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 "MS Shell Dlg 2"; | ||
color: rgb(255, 255, 255);</string> | ||
</property> | ||
<property name="text"> | ||
<string><html><head/><body><p><span style=" font-size:10pt; color:#ffffff;">Presents</span></p></body></html></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><html><head/><body><p><span style=" font-size:14pt; font-weight:600; color:#ffffff;">Loading...</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
Oops, something went wrong.