本文整理汇总了Python中UI.mainMenuStudent方法的典型用法代码示例。如果您正苦于以下问题:Python UI.mainMenuStudent方法的具体用法?Python UI.mainMenuStudent怎么用?Python UI.mainMenuStudent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI.mainMenuStudent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FileStudentRepository
# 需要导入模块: import UI [as 别名]
# 或者: from UI import mainMenuStudent [as 别名]
'''
from UI import *
from InMemoryRepository import *
from StudentRepository import *
from AssignmentRepository import *
from StudentController import *
from AssignmentController import *
from AssignmentUI import *
from UndoController import *
from RedoController import *
from Repositor import *
from AssignFileRepo import *
undoController=undoController()
redoController=RedoController()
aStudentRepository = FileStudentRepository()
#aStudentRepository.add(Students(1,'Ion',5))
#aStudentRepository.add(Students(2,'Dan',5))
aStudentController = StudentController(aStudentRepository,undoController,redoController)
aUI = UI(aStudentController)
aUI.mainMenuStudent()
anAssignmentRepository = FileAssignmentRepository(aStudentRepository)
#anAssignmentRepository.add(Assignment(1,'Mate','23oct',2))
#anAssignmentRepository.add(Assignment(1,'Info','23oct',4))
#anAssignmentRepository.add(Assignment(2,'Mate','23oct',10))
anAssignmentController= AssignmentController(anAssignmentRepository,undoController)
assignUI=AssignmentUI(anAssignmentController)
assignUI.mainMenuAssignment()