-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
'Include' hides re-appended objects even though destroy_old = False #370
Comments
Please make a minimal example that reproduces the error. The behavior you
describe does not sound correct.
…On Mon, Sep 9, 2019, 7:01 PM K3nn3th2 ***@***.***> wrote:
as stated, i have an include object with the 'destroy_old' attribute set
to false.
i can append and remove an object to/from the objects attribute and it
gets shown/removed respectively.
when re-appending an object i previously had appended, it does not get
shown. interestingly, upon appending more objects, i can see the
re-appended one taking up some space in the list, yet without showing any
of the widgets.
so the include object is hiding the re-appended object even though
destroy_old = False
is this a bug?
ill try and make a minimal working example reproducing the error.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#370?email_source=notifications&email_token=AABBQSNEJ66SY37SNMO7CXLQI3PT7A5CNFSM4IVBKVVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKJ4KDA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABBQSK3B4GR2YSIQFA36ULQI3PT7ANCNFSM4IVBKVVA>
.
|
From the top of my head, even if the Include does not destroy the widget it hides it. Show the widget when you add it back and you should be fine. |
I also have a memory that this is related to qt behavior when a widget is unparented and not directly something enforced by enaml. |
Thank you @MatthieuDartiailh ! calling .show() after adding did the trick. it is rather strange though, i'm using a further Include in my code (also with destroy_old = False) which works perfectly fine when fiddling with its objects attribute, no need to display anything after adding. anyway, i attached a 'minimal' example. please excuse the somewhat unusual structure, i tried to keep the example close to my use case in order to see if maybe the structure is causing the strange behaviour. here is the content of the enaml file (sorry for the strange formatting, the "code" markup doesnt seem to work for enaml code ) : ` class Release(object): enamldef DownloadListItem(Form): enamldef ReleaseItem(FlowItem): enamldef Downloader(GroupBox):
enamldef Main(Window):
` |
as stated, i have an include object with the 'destroy_old' attribute set to false.
i can append and remove an object to/from the objects attribute and it gets shown/removed respectively.
when re-appending an object i previously had appended, it does not get shown. interestingly, upon appending more objects, i can see the re-appended one taking up some space in the list, yet without showing any of the widgets.
so the include object is hiding the re-appended object even though destroy_old = False
is this a bug?
ill try and make a minimal working example reproducing the error.
The text was updated successfully, but these errors were encountered: