Skip to content

[FEATURE REQUEST]: Encapsulate callback handlers properly #54

Description

@DavidJameson

Feature Description

I don't know if you have ever used Delphi or even Visual BASIC but the model is as follows:

Drag a button on to a window
Give the button a name
Double-click (or by whatever mechanism you want) to open the code editor to a predefined but empty callback with the specific name of that button.
E.g, if you drag a button on to the window and call it foo, the editor should automatically create a new function called something like

def on_foo_leftClick():
pass

and you can then fill that in. You should not need to know anything about tkinter to do this

Your built-in click_handler(event) should do the work under the covers to determine which button (or whatever) was clicked and then invoke the appropriate callback.

Great idea - I bought the Pro version to support your work but I regret that I wouldn't consider using it at this stage --- too primitive despite how well done your IDE itself is implemented.

Functionalities of the Feature

Functions of the feature

This is a new feature request

  • Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions