Closed tp-arachtingi closed 4 years ago
Hi @tp-arachtingi - this definitely sounds like a useful feature.
There is already a built in .setChangeFunction()
and that should support changes to panedFrames, I'll have to do some digging...
I've added basic support for this, by calling: app.setPanedFrameChangeFunction('pane', change)
you can register the change function to be called when the pane is resized.
Still need to test this against all the different configurations, and work out if it should be registered against a specific/all panes - but it's calling the function!
Closing as feature implemented, will wait for feedback on usage.
Bug Report
Trying to .bind("", self.sizeChanged ) so I can rewrite a Message if the size of a pane changes.
I've been unable to get the object to .bind
Context
Trying to create a simple app with 2 panes, a list and data associated with each entry in the list. If the list on the left pane is changed, the data for the new selection goes on the right pane in a Message. If the app or the panes change size I'd like to redo the message, in case parts of it were lost in the size change.
Expected Behaviour
Following the documentation Configuration -> Registering Other Events I tried to save the pane when I created it:
And later tried to bind it
Which generated the following error:
The other method of getting at the widget:
results in
Sample code, demonstrating the issue
What steps are needed to reproduce the bug
Just run the code
python paneTest3.py
Version Information
appJar: 0.93.0 Python: 3.6.3 TCL: 8.6, TK: 8.6 Platform: Windows pid: 59636 locale: en_US