Search found 5 matches

by swyfty
13 Feb 2023, 08:01
Forum: Tips and Tricks
Topic: MVC pattern example
Replies: 15
Views: 5307

Re: MVC pattern example

iPhilip At the risk of sounding pedantic (I'm still learning so, i'm totally willing to be wrong) I think we need to rethink a portion of this code if we're leaving examples under tutorials... As Ive been reading more, if we're to follow canonical MVC pattern, I believe that it mandates that the mo...
by swyfty
11 Feb 2023, 09:07
Forum: Tips and Tricks
Topic: MVC pattern example
Replies: 15
Views: 5307

Re: MVC pattern example

iPhilip :bravo: So much cleaner than my code. Thank you... After banging my head for a few hours, I did mod my code around to make controller own the view like in the original post. But yours is what I intended to do, I just couldn't figure it out. I'll try to follow your pattern for new classes an...
by swyfty
09 Feb 2023, 19:10
Forum: Tips and Tricks
Topic: MVC pattern example
Replies: 15
Views: 5307

Re: MVC pattern example

I was following a tutorial on MVC with PyQT a long while back; does AHK have a similar signal/slot? to facilitate sending a notification to another class that's not one of the call parameters? in the example above, View encapsulates Controller which encapsulates Model. Simple example ;This is a MVC ...
by swyfty
07 Feb 2023, 08:51
Forum: Ask for Help (v2)
Topic: Help understanding the interpreter, OOP calling methods in class Topic is solved
Replies: 3
Views: 522

Re: Help understanding the interpreter, OOP calling methods in class Topic is solved

This is out of my league but I'll give it a shot answering anyway and let others point out if I'm mistaken... OnEvent's Callback parameter has type "String or Function Object". But you've put this.TSselect() there, which is an expression that returns neither of those because your TSselect() method ...
by swyfty
06 Feb 2023, 22:28
Forum: Ask for Help (v2)
Topic: Help understanding the interpreter, OOP calling methods in class Topic is solved
Replies: 3
Views: 522

Help understanding the interpreter, OOP calling methods in class Topic is solved

I banged my head against this for a good portion of the day, I have it working now but do not understand why and am looking for some better understanding of why what I thought should work didn't and why the other methods work. Looking at the code below where I am assigning events to the buttons. I c...

Go to advanced search