update plugins
This commit is contained in:
14
3rdparty/plugins/com_github_bennymeg_JLC-Plugin-for-KiCad/events.py
vendored
Normal file
14
3rdparty/plugins/com_github_bennymeg_JLC-Plugin-for-KiCad/events.py
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import wx
|
||||
|
||||
STATUS_EVENT_ID = wx.NewId()
|
||||
|
||||
|
||||
class StatusEvent(wx.PyEvent):
|
||||
def __init__(self, data):
|
||||
wx.PyEvent.__init__(self)
|
||||
self.SetEventType(STATUS_EVENT_ID)
|
||||
self.data = data
|
||||
|
||||
@staticmethod
|
||||
def invoke(window, function):
|
||||
window.Connect(-1, -1, STATUS_EVENT_ID, function)
|
Reference in New Issue
Block a user