-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sign_up_window #4
base: main
Are you sure you want to change the base?
Changes from all commits
e6b5279
e8e3ca9
6372bb6
bd95b60
b9b2f3d
e45eece
01ec5e0
7f5205c
0f251ba
94dccba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WINDOW_ICON = "icon/app_icon.ico" | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import sys | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and wtf is this?????? |
||
from PyQt6.QtWidgets import QApplication | ||
from book_search import BookSearch | ||
|
||
def main(): | ||
app = QApplication(sys.argv) | ||
window = BookSearch() | ||
window.show() | ||
sys.exit(app.exec()) | ||
|
||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WINDOW_ICON = "icon/app_icon.ico" |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. delete useless comments (all of yours are useless)
if you had any more question --> google |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
# sign_up_window | ||
|
||
import sys | ||
|
||
from PyQt6.QtWidgets import QApplication, QWidget, QLabel, QLineEdit, QVBoxLayout | ||
from PyQt6.QtGui import QIcon, QFont, QPixmap | ||
from constants import WINDOW_ICON | ||
|
||
class Window(QWidget) : | ||
class SignUpWindow(QWidget) : | ||
def __init__(self) : | ||
super().__init__() | ||
self.setWindowTitle("X_Library | Sign Up Window") | ||
self.setWindowIcon(QIcon("icon/app_icon.ico")) | ||
self.setWindowIcon(QIcon(WINDOW_ICON)) | ||
self.resize(800, 600) | ||
|
||
self.create_widgets() | ||
|
||
def create_widgets(self) : | ||
window_layout = QVBoxLayout() | ||
# image box | ||
|
||
image_box = QLabel(self) | ||
captcha_image = QPixmap("icon/app_icon.ico") | ||
image_box.setPixmap(captcha_image) | ||
image_box.setGeometry(100, 100, 300, 300) | ||
window_layout.addWidget(image_box) | ||
# input box | ||
|
||
input_box = QLineEdit(self) | ||
input_box.setGeometry(150, 400, 200, 30) | ||
window_layout.addWidget(input_box) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as in here .... DRY please |
||
# applying layout | ||
|
||
self.setLayout(window_layout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf is this?