Ejemplo n.º 1
0
    def __init__(self):
        self.win = tk.Tk()

        self.i18n = I18N("en")

        self.win.title(self.i18n.title)
        self.win.geometry("800x540+520+220")
        self.win.resizable(False, False)
        self.win.iconbitmap("src_main\cam.ico")
        self.win.columnconfigure(0, weight=2)
        self.win.columnconfigure(1, weight=4)
        self.win.columnconfigure(2, weight=2)

        self.mailValue = tk.StringVar()
        self.passValue = tk.StringVar()
        self.emailText = tk.StringVar()
        self.passwordText = tk.StringVar()
        self.login = tk.StringVar()

        self.bg = tk.PhotoImage(file="src_main/main_bg.png")

        self.myLabel = tk.Label(self.win, image=self.bg)
        self.myLabel.place(x=0, y=0, relwidth=1, relheight=1)

        self.createWidgets()
        self.win.mainloop()
Ejemplo n.º 2
0
 def reload_gui_text(self, language):
     self.i18n = I18N(language)
     self.win.title(self.i18n.title)
     self.titleDouble_Label.configure(text=self.i18n.titleDouble)
     self.tv.heading('mName', text=self.i18n.movie)
     self.tv.heading('director', text=self.i18n.director)
     self.tv.heading('rating', text=self.i18n.myRating)
Ejemplo n.º 3
0
    def reload_gui_text(self, language):

        self.i18n = I18N(language)
        self.win.title(self.i18n.title)
        self.emailText_Label.configure(text=self.i18n.emailText)
        self.passwordText_Label.configure(text=self.i18n.passwordText)
        self.loginInfoText_Label.configure(text=self.i18n.loginInfoText)

        self.img.configure(file= self.i18n.imgLogin)
Ejemplo n.º 4
0
 def reload_gui_text(self, language):
     self.i18n = I18N(language)
     self.win.title(self.i18n.title)
     self.addNewMovie_Label.configure(text=self.i18n.addNewMovie)
     self.movieName_Label.configure(text=self.i18n.movieName)
     self.Director_Label.configure(text=self.i18n.director)
     self.year_Label.configure(text=self.i18n.year)
     self.myRating_Label.configure(text=self.i18n.myRating)
     self.img.configure(file=self.i18n.img_addMov)
Ejemplo n.º 5
0
    def __init__(self, Username):
        self.win = tk.Tk()

        self.UserName = Username
        self.i18n = I18N("en")
        self.win.title(self.i18n.title)
        self.win.geometry("800x540+520+220")
        self.win.resizable(False, False)
        self.win.iconbitmap("src_main\cam.ico")

        self.createWidgets()
        self.list_grades()
        self.win.mainloop()
Ejemplo n.º 6
0
    def __init__(self):
        self.win = tk.Tk()
        self.i18n = I18N("en")
        self.win.geometry("800x540+520+220")
        self.win.resizable(False, False)
        self.win.columnconfigure(0, weight=8)
        self.win.columnconfigure(1, weight=8)
        self.win.title(self.i18n.title)
        self.bg = tk.PhotoImage(file="src_createAccount/ToyStory.png")
        self.myLabel = tk.Label(self.win, image=self.bg)
        self.myLabel.place(x=0, y=0, relwidth=1, relheight=1)

        self.comboquestion1 = tk.StringVar()
        self.createWidget()
        self.win.mainloop()
Ejemplo n.º 7
0
 def reload_gui_text(self, language):
     self.i18n = I18N(language)
     self.win.title(self.i18n.title)
     self.titleLabel.configure(text=self.i18n.homepage)
     self.recVove1.configure(text=self.i18n.vote)
     self.recVove2.configure(text=self.i18n.vote)
     self.recVove3.configure(text=self.i18n.vote)
     self.search_button.configure(text=self.i18n.search)
     self.searchMovie_Label.configure(text=self.i18n.searchMovie)
     self.didYouWatchTheseMovies_Label.configure(text=self.i18n.didYouWatchTheseMovies)
     self.scoreMovie_Label.configure(text=self.i18n.myMovieScores)
     self.addMovie_img.configure(file=self.i18n.img_addMovie)
     self.img_randomMovie.configure(file=self.i18n.img_randomMovie)
     self.tv.heading('mName', text=self.i18n.movie)
     self.tv.heading('director', text=self.i18n.director)
     self.tv.heading('rating', text=self.i18n.myRating)
Ejemplo n.º 8
0
    def __init__(self, Username):
        self.win = tk.Tk()
        self.win.geometry("800x540+520+220")
        self.win.resizable(False, False)
        self.i18n = I18N("en")
        self.UserName = Username
        self.win.title(self.i18n.title)
        self.win.columnconfigure(0, weight=8)
        self.win.columnconfigure(1, weight=2)
        self.win.columnconfigure(2, weight=8)
        self.win.columnconfigure(3, weight=2)

        self.bg = tk.PhotoImage(file="src_addMovie/BG_space.png")
        self.myLabel = tk.Label(self.win, image=self.bg)
        self.myLabel.place(x=0, y=0, relwidth=1, relheight=1)

        self.createWidget()
        self.win.mainloop()
Ejemplo n.º 9
0
    def __init__(self, username):
        self.win = tk.Tk()

        self.UserName = username
        self.i18n = I18N("en")

        self.win.title(self.i18n.title)
        self.win.geometry("800x540+520+220")
        self.win.resizable(False, False)
        self.win.iconbitmap("src_main\cam.ico")

        self.bg = tk.PhotoImage(file="src_randMovie/Hog_BG.png")
        self.myLabel = tk.Label(self.win, image=self.bg)
        self.myLabel.place(x=0, y=0, relwidth=1, relheight=1)

        self.createWidgets()
        self.getRandomName()
        self.win.mainloop()
Ejemplo n.º 10
0
 def __init__(self,UserName):
     self.win = tk.Tk()
     self.i18n = I18N("en")
     self.Username = UserName
     self.watchedList = []
     self.notWatchedList = []
     self.win.title(self.i18n.title)
     self.win.geometry("800x540+520+220")
     self.win.resizable(False, False)
     self.bg = tk.PhotoImage(file="src_HomePage/Lotrbackground.png")
     self.myLabel = tk.Label(self.win, image=self.bg)
     self.myLabel.place(x=0, y=0, relwidth=1, relheight=1)
     self.win.columnconfigure(0, weight=1)
     self.win.columnconfigure(1, weight=1)
     self.win.columnconfigure(2, weight=1)
     self.getPersonalMovieList()
     self.createWidgets()
     self.list_grades()
     self.win.mainloop()
Ejemplo n.º 11
0
    def reload_gui_text(self, language):
        self.i18n = I18N(language)
        self.win.title(self.i18n.title)
        self.createNewAccount_Label.configure(text=self.i18n.createNewAccount)
        self.nameSurname_Label.configure(text=self.i18n.userName)
        self.eMail_Label.configure(text=self.i18n.email)
        self.password_Label.configure(text=self.i18n.password)
        self.passwordControl_Label.configure(text=self.i18n.passwordControl)
        self.recoveryQuestion_Label.configure(text=self.i18n.recoveryQuestion)
        self.recoveryQuestionAnswer_Label.configure(
            text=self.i18n.recoveryQuestionAnswer)
        self.rb1.configure(text=self.i18n.female)
        self.rb2.configure(text=self.i18n.male)
        self.gender_Label.configure(text=self.i18n.gender)
        self.nameSurname_InfoLabel.configure(text=self.i18n.createUserInfo4)
        self.password_InfoLabel.configure(text=self.i18n.createUserInfo5)
        self.img1.configure(file=self.i18n.img_alien)

        self.recovery_chosen['values'] = (self.i18n.comboquestion1,
                                          self.i18n.comboquestion2,
                                          self.i18n.comboquestion3,
                                          self.i18n.comboquestion4,
                                          self.i18n.comboquestion5,
                                          self.i18n.comboquestion6)
Ejemplo n.º 12
0
 def reload_gui_text(self, language):
     self.i18n = I18N(language)
     self.win.title(self.i18n.title)
Ejemplo n.º 13
0
 def reload_gui_text(self, language):
     self.i18n = I18N(language)
     self.win.title(self.i18n.title)
     self.recTitle.configure(text=self.i18n.randomRecommendation)