[Windows] Action attribute duplicated while scrolling

Bug #421951 reported by Juho Vepsäläinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Medium
Stani

Bug Description

1. Set up an action list so that a scrollbar appears to the window. (Just adding one Blender action is enough.)
2. Select some attribute.
3. Scroll (move the scrollbar up/down directly or either using a mouse scroll. Make sure that the attribute is ~active~ (ie. editable atm)). -> Note how the attribute stays in the same location.

I tested this on Win7 (Professional) using wxPython 2.8.10.1 (x64-unicode).

Tags: windows
Stani (stani)
summary: - Action attribute duplicated while scrolling
+ [Windows] Action attribute duplicated while scrolling
Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Medium
status: New → Confirmed
Stani (stani)
Changed in phatch:
status: Confirmed → Triaged
Stani (stani)
tags: added: windows
Stani (stani)
Changed in phatch:
milestone: none → 0.2.6
Stani (stani)
Changed in phatch:
milestone: 0.2.6 → 0.2.7
Stani (stani)
Changed in phatch:
assignee: stani (stani) → Ed Cranford (ed-cranford)
Stani (stani)
Changed in phatch:
status: Triaged → Confirmed
Stani (stani)
Changed in phatch:
milestone: 0.2.7 → 0.2.8
Stani (stani)
Changed in phatch:
assignee: Ed Cranford (ed-cranford) → nobody
Revision history for this message
Stani (stani) wrote :

Committed revision 1905.

$ bzr diff
=== modified file 'phatch/lib/pyWx/treeEdit.py'
--- phatch/lib/pyWx/treeEdit.py 2010-03-07 00:36:46 +0000
+++ phatch/lib/pyWx/treeEdit.py 2010-03-26 19:43:26 +0000
@@ -451,6 +451,7 @@
         self.popup.Show()
         self.resize_popup()
         if not isinstance(field, formField.FontFileField):
+ self.Bind(wx.EVT_SCROLLWIN, self.close_popup)
             wx.GetTopLevelParent(self).Bind(wx.EVT_LEAVE_WINDOW,
                 self.close_popup)
             self.evt_leave_window = True
@@ -463,7 +464,8 @@

     def close_popup(self, event=None):
         frame = wx.GetTopLevelParent(self)
- if frame and self.evt_leave_window:
+ if self and frame and self.evt_leave_window:
+ self.Unbind(wx.EVT_SCROLLWIN)
             frame.Unbind(wx.EVT_LEAVE_WINDOW)
             self.evt_leave_window = False
         if self.popup:
@@ -471,6 +473,8 @@
             self.set_form_field_value(self.popup_item, value_as_string)
             # self.update_form_relevance(self.popup_item)
         self.popup = self.popup_item = None
+ if event:
+ event.Skip()

 # # This would be logical but only works in wxPython2.6
 # # def get_popup_pos_offset_size(self, item):

Changed in phatch:
assignee: nobody → Stani (stani)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.