Skip to content

Commit

Permalink
wx: delegate bind/unbind to subwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Jan 21, 2025
1 parent 7813bd6 commit 50fc604
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wgpu/gui/wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,16 @@ def Refresh(self): # noqa: N802
super().Refresh()
self._subwidget.Refresh()

def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): # noqa: N802
self._subwidget.Bind(
event=event, handler=handler, source=source, id=id, id2=id2
)

def Unbind(self, event, source=None, id=wx.ID_ANY, id2=wx.ID_ANY, handler=None): # noqa: N802
self._subwidget.Unbind(
event=event, source=source, id=id, id2=id2, handler=handler
)

# Methods that we add from wgpu

def get_present_methods(self):
Expand Down

0 comments on commit 50fc604

Please sign in to comment.