Beispiel #1
0
    def __init__(self, window: qwin):
        super().__init__(window)
        self.setStyleSheet('''\
background-color: transparent;''')

        # background
        self.background = qlab(self)
        self.background.setGeometry(-60, 0, 950, 120)
        self.background.setStyleSheet('''\
border-radius: 60;
padding-left: 60;
background-color: transparent;''')

        # foreground
        self.foreground = qlab(self)
        self.foreground.setGeometry(20, 10, 100, 100)
        self.foreground.setStyleSheet('''\
background-color: transparent;
border-radius: 20;''')

        # name
        self.name = qlab(self)
        self.name.setGeometry(140, 50, 120, 60)
        self.name.setStyleSheet('''\
color: black;
background-color: rgba(200, 100, 125, 200);
border-radius: 10;''')
Beispiel #2
0
    def __init__(self, window: qwin):

        # background
        self.bgimage = qpix("resources/me/background.svg")
        self.background = qlab(window)
        self.background.setGeometry(-100, 100, 1080, 200)
        self.background.setPixmap(self.bgimage)
        self.background.setStyleSheet('''\
border-radius: 100;
background-color: transparent;
padding-left: 100;''')

        # foreground
        self.fgimage = qpix("resources/me/foreground.svg")
        self.foreground = qlab(window)
        self.foreground.setGeometry(100, 170, 200, 200)
        self.foreground.setPixmap(self.fgimage)
        self.foreground.setStyleSheet('''\
border-radius: 50;
background-color: transparent;''')

        # about
        self.about = qpbt(window)
        self.about.setGeometry(320, 320, 140, 40)
        self.about.setStyleSheet('''\
QPushButton::hover
{
	color: white;
}
QPushButton
{
	background-color: transparent;
	border-style: none;
	color: rgb(147, 224, 227);
}''')
        self.about.setText("none")
Beispiel #3
0
    def __init__(self, window: qwin):

        # button
        self.button = qpbt(window)
        self.button.setCursor(hand)
        self.button.clicked.connect(self.buttonclicked)
        self.button.setStyleSheet('''\
QPushButton::hover
{
	background-color: rgba(240, 223, 175, 200);
}
QPushButton
{
	border-radius: 20;
	background-color: rgba(240, 223, 175, 150);
	color: black;
	padding-left: 30;
	text-align: left;
	font: 30px;
}''')
        self.button.setVisible(False)

        # frame
        self.frame = qfra(window)
        self.frame.setGeometry(350, 140, 600, 600)
        self.frame.setStyleSheet('''\
background-color: transparent;
border-radius: 20;
border-style: solid;
border-width: 5;
border-color: rgb(240, 223, 175);''')
        self.frame.setVisible(False)

        self.label = qlab(self.frame)
        self.label.setGeometry(50, 50, 50, 50)
        self.label.setStyleSheet('''\
border-style: none;
font: 40px;''')

        self.otheroptions = []
Beispiel #4
0
    def __init__(self, window: qwin):
        super().__init__(window)
        self.main_qss = '''\
background-color: rgba(200, 100, 100, 200);
border-radius: 20;'''
        self.setStyleSheet(self.main_qss)

        # new title
        self.message_image = qpix("resources/message.png")
        self.updates_image = qpix("resources/updates.png")

        # title
        self.label = qlab(self)
        self.label.setStyleSheet('''\
border-radius: 0;
background-color: rgba(0, 0, 0, 0);
font: 40pt;
font-weight: 700;''')

        # button
        self.button = qpbt(self)
        self.button.setGeometry(15, 15, 50, 50)
        self.button.setText("←")
        self.button.setIconSize(qsiz(50, 50))
        self.button.setCursor(hand)
        self.button.clicked.connect(self.pull_up)
        self.button.setStyleSheet('''\
QPushButton::hover
{
	color: white;
}
QPushButton
{
	background-color: transparent;
	color: black;
	font: 40px;
}''')
Beispiel #5
0
	def __init__(self, window: qwin):
		self.mainwindow     = window
		self.icon  = qico("resources/icon.svg")
		self.topbox         = qfra(window)
		self.homebutton     = qpbt(window)
		self.cardsbutton    = top_button(window)
		self.peoplebutton   = top_button(window)
		self.groupsbutton   = top_button(window)
		self.postsbutton    = top_button(window)
		self.settingsbutton = top_button(window)
		self.accountsbutton = top_button(window)
		self.label01        = qlab(window)
		self.label02        = qlab(window)
		self.linedit01      = qlin(window)
		self.linedit02      = qlin(window)
		self.button01       = body_button(window)
		self.button02       = body_button(window)
		self.database       = database()
		self.popupbox01     = popup(window)
		self.popupbox02     = popup(window)
		self.card           = card(window)
		self.resizelem      = resizelement(window)
		self.zoomelem       = zoomelement(window)
		self.themelem       = themelement(window)
		self.profheader     = profile_header(window)
		self.cardsgroup     = cardslayout(window)
		self.person01       = persontab(window)
		self.person02       = persontab(window)
		self.person03       = persontab(window)
		self.person04       = persontab(window)
		self.person05       = persontab(window)
		self.group01        = persontab(window)
		self.group02        = persontab(window)
		self.group03        = persontab(window)
		self.group04        = persontab(window)
		self.group05        = persontab(window)
		self.panelmessage   = message_panel(window)
		self.panelupdates   = updates_panel(window)
		self.accountbox     = popup(window)
		self.shortcut01     = qsho(self.linedit02)
		self.shortcut02     = qsho(self.popupbox01)
		self.shortcut03     = qsho(self.popupbox02)
		self.shortcut04     = qsho(self.popupbox01)
		self.shortcut05     = qsho(self.popupbox02)
		self.shortcut06     = qsho(self.accountbox)


		# window
		window = self.mainwindow
		window.setGeometry(100, 100, 1200, 800)
		window.setFixedSize(1200, 800)
		window.setWindowTitle("hello_world")
		window.setWindowIcon(self.icon)
		window.setStyleSheet('''\
background-color: rgb(33, 33, 33);
color: white;
font: 20pt "Josefin Sans"''')

		# top box
		box = self.topbox
		box.setGeometry(17, 10, 1170, 60)
		box.setStyleSheet('''\
border-style: none;
background-color: rgba(33, 33, 33, 0);
border-radius: 30;
border-style: solid;
border-width: 3;
border-color: rgb(255, 100, 125);''')

		# home button
		button = self.homebutton
		button.setGeometry(10, 10, 130, 60)
		button.setText("home")
		button.clicked.connect(self.setup_home)
		button.setCursor(hand)
		button.setStyleSheet('''\
background-color: rgb(255, 100, 125);
font-size: 20pt;
color: black;
border-radius: 30;''')

		# cards button
		button = self.cardsbutton
		button.setGeometry(160, 20, 140, 40)
		button.setText("cards")
		button.clicked.connect(self.setup_cards)

		# people button
		button = self.peoplebutton
		button.setGeometry(320, 20, 140, 40)
		button.setText("people")
		button.clicked.connect(self.setup_people)

		# groups button
		button = self.groupsbutton
		button.setGeometry(480, 20, 140, 40)
		button.setText("groups")
		button.clicked.connect(self.setup_groups)

		# posts button
		button = self.postsbutton
		button.setGeometry(640, 20, 140, 40)
		button.setText("posts")
		button.clicked.connect(self.setup_posts)

		# settings button
		button = self.settingsbutton
		button.setGeometry(880, 20, 140, 40)
		button.setText("settings")
		button.clicked.connect(self.setup_settings)

		# accounts button
		button = self.accountsbutton
		button.setGeometry(1040, 20, 140, 40)
		button.setText("accounts")
		button.clicked.connect(self.accounts_click)

		# settings options

		self.resizelem.otheroptions = [self.zoomelem, self.themelem]
		self.zoomelem.otheroptions = [self.resizelem, self.themelem]
		self.themelem.otheroptions = [self.resizelem, self.zoomelem]