Skip to content

Commit

Permalink
remove old use of size hint guard
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Jan 9, 2014
1 parent 84274c8 commit 6e86d17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions enaml/wx/wx_abstract_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from enaml.widgets.abstract_button import ProxyAbstractButton

from .wx_constraints_widget import size_hint_guard
from .wx_control import WxControl


Expand Down Expand Up @@ -87,7 +86,7 @@ def set_text(self, text, sh_guard=True):
"""
if sh_guard:
with size_hint_guard(self):
with self.size_hint_guard():
self.widget.SetLabel(text)
else:
self.widget.SetLabel(text)
Expand Down
3 changes: 1 addition & 2 deletions enaml/wx/wx_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from enaml.widgets.label import ProxyLabel

from .wx_constraints_widget import size_hint_guard
from .wx_control import WxControl


Expand Down Expand Up @@ -60,7 +59,7 @@ def set_text(self, text, sh_guard=True):
"""
if sh_guard:
with size_hint_guard(self):
with self.size_hint_guard():
self.widget.SetLabel(text)
else:
self.widget.SetLabel(text)
Expand Down
4 changes: 2 additions & 2 deletions enaml/wx/wx_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from enaml.widgets.splitter import ProxySplitter

from .wx_constraints_widget import WxConstraintsWidget, size_hint_guard
from .wx_constraints_widget import WxConstraintsWidget
from .wx_split_item import WxSplitItem


Expand Down Expand Up @@ -257,7 +257,7 @@ def set_orientation(self, orientation, sh_guard=True):
wx_orientation = _ORIENTATION_MAP[orientation]
widget = self.widget
if sh_guard:
with size_hint_guard(self):
with self.size_hint_guard():
widget.SetOrientation(wx_orientation)
widget.SizeWindows()
else:
Expand Down

0 comments on commit 6e86d17

Please sign in to comment.