-
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
1 parent
d57666b
commit bd4f06f
Showing
10 changed files
with
89 additions
and
48 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
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,25 @@ | ||
from PyQt6.QtWidgets import QLineEdit | ||
|
||
class UserInfo: | ||
def __init__(self, parent=None): | ||
self.chinese_name = QLineEdit(parent) | ||
self.english_name = QLineEdit(parent) | ||
self.gender = QLineEdit(parent) | ||
self.birth_year = QLineEdit(parent) | ||
self.education_level = QLineEdit(parent) | ||
self.native_language = QLineEdit(parent) | ||
self.family_language = QLineEdit(parent) | ||
self.friend_language = QLineEdit(parent) | ||
|
||
def get_data(self)->dict: | ||
return { | ||
"中文姓名": self.chinese_name.text(), | ||
"英文姓名": self.english_name.text(), | ||
"性別": self.gender.text(), | ||
"出生年": self.birth_year.text(), | ||
"教育程度": self.education_level.text(), | ||
"母語": self.native_language.text(), | ||
"跟家人常說語言": self.family_language.text(), | ||
"跟朋友常說語言": self.friend_language.text() | ||
} | ||
|
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
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
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
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,3 @@ | ||
from model.session import Session | ||
|
||
currentSession = Session() |
File renamed without changes.
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,12 @@ | ||
|
||
class Session: | ||
def __init__(self): | ||
self.user_info = None | ||
|
||
def set_user_info(self, info:dict): | ||
self.user_info = info | ||
|
||
def get_user_info(self)->dict: | ||
return self.user_info | ||
|
||
currentSession = Session() |
Empty file.
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