template_list doesn't refresh in popup #48612

Closed
opened 2016-06-08 11:41:23 +02:00 by Vincent Girès · 9 comments

{F316416}System Information
Windows 10 Pro 64 bits
Intel Xeon X5680
Nvidia Quadro 4000

Short description of error
template_list doesn't refresh in popup:

  • text are not editable with double click
  • list area can't be resized
  • scroll does nothing until popup is invoked again

The same list works perfectly in the panel property and tool shelf.

Exact steps for others to reproduce the error
Open the blend file and execute the script. Then try to edit texts, resize the list and scroll into it.

{[F316416](https://archive.blender.org/developer/F316416/bug_panel.blend)}**System Information** Windows 10 Pro 64 bits Intel Xeon X5680 Nvidia Quadro 4000 **Short description of error** template_list doesn't refresh in popup: - text are not editable with double click - list area can't be resized - scroll does nothing until popup is invoked again The same list works perfectly in the panel property and tool shelf. **Exact steps for others to reproduce the error** Open the blend file and execute the script. Then try to edit texts, resize the list and scroll into it.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @VincentGires

Added subscriber: @VincentGires

This issue was referenced by blender/blender@fc96110bb5

This issue was referenced by blender/blender@fc96110bb56f15b947de8e29a12731fe35aa8dff
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Grr, that was tricky (tm). blender/blender@fc96110bb is not a complete fix (there are some glitches remaining, double-click to rename doesn't work either), but it's a lot better now. Basically, uiLists were never designed/coded to work in popups. Strictly speaking this wasn't a bug even.

Note, to get uiList button interactions to work you have to use the 'check' callback for the operator now, which is really ugly and annoying, but to avoid that bigger changes are needed. You may want to do some better checking, but simply for testing this should work:

def check(self, context):
    return True
Grr, that was tricky (tm). blender/blender@fc96110bb is not a complete fix (there are some glitches remaining, double-click to rename doesn't work either), but it's a lot better now. Basically, uiLists were never designed/coded to work in popups. Strictly speaking this wasn't a bug even. Note, to get uiList button interactions to work you have to use the 'check' callback for the operator now, which is really ugly and annoying, but to avoid that bigger changes are needed. You may want to do some better checking, but simply for testing this should work: ``` def check(self, context): return True ```
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

CCing @mont29 to make sure he doesn't miss the changes.

CCing @mont29 to make sure he doesn't miss the changes.
Author

Thank you so much! It's a lot more usable now and I already use it! :)

Thank you so much! It's a lot more usable now and I already use it! :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#48612
No description provided.