From 4e319c7c53c48d56a07c5e21ff6687de73ee6450 Mon Sep 17 00:00:00 2001 From: dinhhannah <123044059+dinhhannah@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:58:56 -0700 Subject: [PATCH] Update main.py options and ? buttons Pt 2 --- main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.py b/main.py index d66b584..2a14b9d 100644 --- a/main.py +++ b/main.py @@ -148,6 +148,14 @@ def process(self): def myFunction(self): print('Open Option Menu') + def myFunction(): + print('Open Option Menu') + optionsbox = Button(BoxCoords[0],BoxCoords[1],BoxCoords[2], BoxCoords[3], 'Volume: ■■■■■■■■■■■■■■■■') + + def Qfunction(): + print('Open FnQ') + Qbox = Button(BoxCoords[0], BoxCoords[1], + BoxCoords[2], BoxCoords[3], 'Recycling is cool') #Below is example of multipress button @@ -158,6 +166,8 @@ def myFunction(self): #optionsButton = Button(optionsBoxCoord[0], optionsBoxCoord[1], # optionsBoxCoord[2], optionsBoxCoord[3], 'Options', Button.myFunction) myItem = Item(itemx, itemy - 400, .1) +FQbutton = Button(questionboxcoord[0], questionboxcoord[1], + questionboxcoord[2], questionboxcoord[3], '?', Button.Qfunction) ###### NEED TO CHANGE TRASH BIN X-POSITION FOR DIFFERENT SCREEN SIZE trashBin = Bin(1,10,0.12)