-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow replacing an element of an Fl_Group (without deleting it) #994
Comments
This is a question you should probably ask in pyFLTK support/forum/group/whatever. As far as FLTK is concerned, did you consider using Disclaimer: I don't know how pyFLTK (i.e. python itself) operates (WRT memory management) but I believe it uses some kind of garbage collection. Thus, as long as you store all the widgets in the array Another approach would be to use the FLTK equivalent of |
I just noticed that you wrote:
Your implied assumption in this statement is incorrect: Fl_Group::remove() does NOT delete the child widget - as I wrote above (see the linked docs). |
Indeed. I had missed that detail and both Robert Arkiletian (of pyFLTK) and yourself pointed me in the right direction. I am closing the issue. I apologize. |
I have been playing with pyFLTK and have been enjoying it. However, I run into what appears a limitation in its interaction with FLTK's API that would effect probably any other language binding too.
I am trying to change the order of the Fl_Widgets in an Fl_Group, similar to what it is done in Fl_Scroll:
On Python, there's no way to deal with the pointers directly, afaik. And doing something, like:
I would like to do:
I am using FLTK
Describe the solution you'd like
Either one of two things (whatever is easier):
Describe alternatives you've considered
Create my own derived C++ Fl_Group and expose it in pyFLTK.
The text was updated successfully, but these errors were encountered: