Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/applications.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ A simple command-line application might look something like this::
location = Str("world")

def _run(self):
super(HelloApplication, self)._run()
super()._run()
print("Hello "+self.location)

def main():
Expand Down
2 changes: 1 addition & 1 deletion docs/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ define a very simple Python editor application with menus::
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/application/hello_world/hello_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HelloApplication(Application):
id = "example_hello_application"

def _run(self):
super(HelloApplication, self)._run()
super()._run()
print("Hello " + self.location)


Expand Down
2 changes: 1 addition & 1 deletion examples/application/python_editor/python_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def redo(self):
def create(self, parent):
""" Create and set the toolkit-specific contents of the editor.
"""
super(PythonEditor, self).create(parent)
super().create(parent)
self.ui.history = UndoHistory()
self._last_save = 0

Expand Down
2 changes: 1 addition & 1 deletion examples/application_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Create an action that exits the application.
exit_action = Action(name="E&xit", on_perform=self.close)
Expand Down
2 changes: 1 addition & 1 deletion examples/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, **traits):
""" Creates a new window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Create the window's menu, tool and status bars.
self._create_action_bars()
Expand Down
2 changes: 1 addition & 1 deletion examples/image_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/mdi_application_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/multi_toolbar_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/progress_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/python_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
4 changes: 2 additions & 2 deletions examples/tasks/advanced/python_editor_qt4.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class PythonEditorEventFilter(QtCore.QObject):
"""

def __init__(self, editor, parent):
super(PythonEditorEventFilter, self).__init__(parent)
super().__init__(parent)
self.__editor = editor

def eventFilter(self, obj, event):
Expand Down Expand Up @@ -202,4 +202,4 @@ def eventFilter(self, obj, event):
event=event,
)

return super(PythonEditorEventFilter, self).eventFilter(obj, event)
return super().eventFilter(obj, event)
2 changes: 1 addition & 1 deletion examples/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down
2 changes: 1 addition & 1 deletion examples/tool_palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, **traits):
""" Creates a new application window. """

# Base class constructor.
super(MainWindow, self).__init__(**traits)
super().__init__(**traits)

# Add a menu bar.
self.menu_bar_manager = MenuBarManager(
Expand Down