Example #1
0
    def log_in(self):
        # Disable the buttons
        self.btn_create_acct.config(state=DISABLED)
        self.btn_login.config(state=DISABLED)

        # Create an account creation GUI
        self.login_GUI = login.LoginGUI()

        # Wait for the windows  to be destroyed.
        self.login_GUI.win_login.wait_window()

        # Enable login and create buttons again.
        self.btn_login.config(state=NORMAL)
        self.btn_create_acct.config(state=NORMAL)
Example #2
0
        self.load_page()
        return (self.browser, jobs_per_page)

    def finish_apply(self):
        self.browser.close()


if __name__ == '__main__':

    # set use of gui (T/F)
    useGUI = True

    # use gui
    if useGUI == True:

        app = login.LoginGUI()
        app.mainloop()

        #get user info info
        username = app.frames["StartPage"].username
        password = app.frames["StartPage"].password
        language = app.frames["PageOne"].language
        position = app.frames["PageTwo"].position
        location_code = app.frames["PageThree"].location_code
        if location_code == 1:
            location = app.frames["PageThree"].location
        else:
            location = app.frames["PageFour"].location
        resumeloctn = app.frames["PageFive"].resumeloctn

    # no gui