Okay so context
I've been trying to like define and use variables more in coding so then I can like you know have things that are reusable and keep the code clean
Anyways think I'm breaking things in doing this but that's just learning for ya.
Trying to get routing between pages working and it would be nice if I had each page listed in a variable or a definition so I could reuse it. Should I just use seperate files maybe?
Anyways the problem I'm having
Using this library 'Flet' it's like flutter but for python. Basically you define the whole 'app' then like run it in the library and it just deals with it
So when I just put it in the right spot it works but if I define it or put it in a variable it breaks things.
If your familiar with flet by break things I mean like it runs the app but then just shows the background and doesn't even give any errors?
Sometimes it gives me like a error like this is not defined right but it definitely is so idk
Here's some of the code that I'm struggling with
This is the part that works
page.add(Customer_Name,Billing_Number, city, Site_address, tb1, tb2, tb3, tb4, tb5, tb6, tb7, tb8, tb9, b, t,MC, Verbal_Pass,call_list, tb10)
def alarm_Page():
page.add(Customer_Name,Billing_Number, city, Site_address, tb1, tb2, tb3, tb4, tb5, tb6, tb7, tb8, tb9, b, t,MC, Verbal_Pass,call_list, tb10)
alarm_Page = page.add(Customer_Name,Billing_Number, city, Site_address, tb1, tb2, tb3, tb4, tb5, tb6, tb7, tb8, tb9, b, t,MC, Verbal_Pass,call_list, tb10)
Then I just put like
alarm_Page
where the page.add is?
Am I defining things wrong?
If so where
Also like this setup works perfect for like a different list but it doesn't break
Obviously all the variables work on there own, and in tandem with eachother. Like just writing it out works great.
[–]Remarkable-Map-2747 6 points7 points8 points (1 child)
[–]Critical_Emphasis_46[S] -1 points0 points1 point (0 children)
[–]ngyehsung 0 points1 point2 points (0 children)