auth.py 855 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 18 18:34:40 2018

@author: Antoine Lima, Leo Reynaert, Domitille Jehenne
"""

import logging

from PyQt5.QtCore import QTime

from module import Module
import modules
from ui.auth2p_ui import Ui_Form as Auth2pWidget

class AuthModule(Module):
	def __init__(self, parent):
		super().__init__(parent, Auth2pWidget())
		
		self.ui.btnDone.clicked.connect  (self.ui_handleClick_btnDone)
		self.ui.btnCancel.clicked.connect(self.ui_handleClick_btnCancel)

	def load(self):
		logging.debug('Loading AuthModule')

	def unload(self):
		logging.debug('Unloading AuthModule')

	def other(self, **kwargs):
		logging.debug('Other AuthModule')

	def ui_handleClick_btnCancel(self):
		self.switchModule(modules.MenuModule)

	def ui_handleClick_btnDone(self):
		self.switchModule(modules.GameModule)