Jump to content

Python - keyboard call - Question


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium

For that you can go to game.py and search for these at def __BuildKeyDict(self):

253216Screenshot-1.png

You bind your event to the button there and create your new definition of the function in the same class:

253330Screenshot-4.png

Normally any window is bound to an interface class (interfaceModule.py) so you would call your GUI from there. For example, here is a function StartExchange from game.py calling StartExchange function at interfaceModule.py (self.interface).

253748Screenshot-5.png

And here is this the function from interface class calling exchange window functions.

254044Screenshot-6.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.