mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Merge pull request #1677 from Metallicow/remove-exception-in-py-shell-wrap-method
Remove exception in py shell wrap() method
This commit is contained in:
@@ -1436,10 +1436,7 @@ class Shell(editwindow.EditWindow):
|
||||
|
||||
def wrap(self, wrap=True):
|
||||
"""Sets whether text is word wrapped."""
|
||||
try:
|
||||
self.SetWrapMode(wrap)
|
||||
except AttributeError:
|
||||
return 'Wrapping is not available in this version.'
|
||||
self.SetWrapMode(wrap)
|
||||
|
||||
def zoom(self, points=0):
|
||||
"""Set the zoom level.
|
||||
|
||||
Reference in New Issue
Block a user