Jump to content
  • 0

Python - keyboard call - Question



Hello, I am looking for a person who will help me call a button on the keyboard, e.g. F5, F6, A, B, C by clicking a button in the game, e.g. some gui.

Hope you know what I mean. Can anybody help me?

wants to trigger in-game keyboard clicking in the button

Edited by santa12
Link to post

1 answer to this question

Recommended Posts

  • 0
  • VIP

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


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


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).


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


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.