proiect finalizat

This commit is contained in:
andrei-mihnea-cerbu
2024-01-13 12:59:19 +02:00
parent 54542da299
commit 67b7a241d7
53 changed files with 321 additions and 19 deletions
+3 -2
View File
@@ -3,11 +3,13 @@ from PIL import Image, ImageTk
class UserFrame(tk.Frame):
"""
This class takes care of the aspect of the user blocks from the MainPageView.
"""
def __init__(self, master, user_data, current_logged_user, click_callback, *args, **kwargs):
super().__init__(master, *args, **kwargs)
self.current_logged_user = current_logged_user
print(user_data)
self.user_data = {
'id': user_data[0],
@@ -45,7 +47,6 @@ class UserFrame(tk.Frame):
# Bind the click event to the user frame
user_frame.bind("<Button-1>", lambda event, user_data=self.user_data, current_logged_user=self.current_logged_user: self.on_user_click(user_data, current_logged_user))
# Pack the user frame
user_frame.pack(side=tk.LEFT, padx=10, pady=10)