Skip to content
Permalink
Browse files

Fixes recursion error in Kivy id property

Error introduced in Kivy 1.11.0 with newly deprecated id property. This change eliminates the error (id was not needed for anything but information in the log file).
  • Loading branch information...
qcapen committed Jun 7, 2019
1 parent b8d490e commit 2fb90742c458d45be17388b0932d29569ba472c3
Showing with 2 additions and 2 deletions.
  1. +2 −2 mpfmc/uix/widget.py
@@ -149,7 +149,7 @@ def __init__(self, mc: "MpfMc", config: Optional[dict] = None,
self.mc.post_mc_native_event(event)

def __repr__(self) -> str: # pragma: no cover
return '<{} Widget id={}>'.format(self.widget_type_name, self.id)
return '<{} Widget>'.format(self.widget_type_name)

@staticmethod
def get_display():
@@ -967,7 +967,7 @@ def __init__(self, widget: "Widget",
self._widget = widget

def __repr__(self) -> str: # pragma: no cover
return '<WidgetContainer id={} z={} key={}>'.format(self.id, self.z, self.key)
return '<WidgetContainer z={} key={}>'.format(self.z, self.key)

def __lt__(self, other: "KivyWidget") -> bool:
"""Less than comparison operator (based on z-order value).

0 comments on commit 2fb9074

Please sign in to comment.
You can’t perform that action at this time.