Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
38b822d0
Commit
38b822d0
authored
Dec 30, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call super() suitable for Python 3
parent
741a47c2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
topydo/ui/CommandLineWidget.py
topydo/ui/CommandLineWidget.py
+2
-2
topydo/ui/ConsoleWidget.py
topydo/ui/ConsoleWidget.py
+1
-1
topydo/ui/Main.py
topydo/ui/Main.py
+3
-3
topydo/ui/TodoListWidget.py
topydo/ui/TodoListWidget.py
+1
-1
topydo/ui/TodoWidget.py
topydo/ui/TodoWidget.py
+1
-1
topydo/ui/ViewWidget.py
topydo/ui/ViewWidget.py
+2
-2
No files found.
topydo/ui/CommandLineWidget.py
View file @
38b822d0
...
...
@@ -18,7 +18,7 @@ import urwid
class
CommandLineWidget
(
urwid
.
Edit
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
CommandLineWidget
,
self
).
__init__
(
*
args
,
**
kwargs
)
super
().
__init__
(
*
args
,
**
kwargs
)
urwid
.
register_signal
(
CommandLineWidget
,
[
'blur'
,
'execute_command'
])
def
clear
(
self
):
...
...
@@ -41,4 +41,4 @@ class CommandLineWidget(urwid.Edit):
try
:
dispatch
[
p_key
]()
except
KeyError
:
super
(
CommandLineWidget
,
self
).
keypress
(
p_size
,
p_key
)
super
().
keypress
(
p_size
,
p_key
)
topydo/ui/ConsoleWidget.py
View file @
38b822d0
...
...
@@ -21,7 +21,7 @@ class ConsoleWidget(urwid.LineBox):
urwid
.
register_signal
(
ConsoleWidget
,
[
'close'
])
self
.
text
=
urwid
.
Text
(
p_text
)
super
(
ConsoleWidget
,
self
).
__init__
(
self
.
text
)
super
().
__init__
(
self
.
text
)
def
keypress
(
self
,
p_size
,
p_key
):
if
p_key
==
'enter'
or
p_key
==
'q'
or
p_key
==
'esc'
:
...
...
topydo/ui/Main.py
View file @
38b822d0
...
...
@@ -38,7 +38,7 @@ class UIView(View):
the sort expression and the filter expression, etc.)
"""
def
__init__
(
self
,
p_sorter
,
p_filter
,
p_todolist
,
p_data
):
super
(
UIView
,
self
).
__init__
(
p_sorter
,
p_filter
,
p_todolist
)
super
().
__init__
(
p_sorter
,
p_filter
,
p_todolist
)
self
.
data
=
p_data
_NEW_COLUMN
=
1
...
...
@@ -67,7 +67,7 @@ class MainPile(urwid.Pile):
class
UIApplication
(
CLIApplicationBase
):
def
__init__
(
self
):
super
(
UIApplication
,
self
).
__init__
()
super
().
__init__
()
self
.
todofile
=
TodoFile
.
TodoFile
(
config
().
todotxt
())
self
.
todolist
=
TodoList
.
TodoList
(
self
.
todofile
.
read
())
...
...
@@ -144,7 +144,7 @@ class UIApplication(CLIApplicationBase):
pass
def
_post_execute
(
self
):
super
(
UIApplication
,
self
).
_post_execute
()
super
().
_post_execute
()
for
column
,
_
in
self
.
columns
.
contents
:
column
.
update
()
...
...
topydo/ui/TodoListWidget.py
View file @
38b822d0
...
...
@@ -39,7 +39,7 @@ class TodoListWidget(urwid.LineBox):
pile
.
focus_position
=
2
super
(
TodoListWidget
,
self
).
__init__
(
pile
)
super
().
__init__
(
pile
)
urwid
.
register_signal
(
TodoListWidget
,
[
'execute_command'
])
...
...
topydo/ui/TodoWidget.py
View file @
38b822d0
...
...
@@ -52,7 +52,7 @@ class TodoWidget(urwid.WidgetWrap):
self
.
_markup
(
p_todo
,
True
)
# focus
)
super
(
TodoWidget
,
self
).
__init__
(
self
.
widget
)
super
().
__init__
(
self
.
widget
)
def
_markup
(
self
,
p_todo
,
p_focus
):
priority_colors
=
config
().
priority_colors
()
...
...
topydo/ui/ViewWidget.py
View file @
38b822d0
...
...
@@ -40,7 +40,7 @@ class ViewWidget(urwid.LineBox):
self
.
reset
()
super
(
ViewWidget
,
self
).
__init__
(
self
.
pile
)
super
().
__init__
(
self
.
pile
)
urwid
.
register_signal
(
ViewWidget
,
[
'save'
,
'close'
])
...
...
@@ -76,4 +76,4 @@ class ViewWidget(urwid.LineBox):
if
p_key
==
'esc'
:
self
.
close
()
else
:
return
super
(
ViewWidget
,
self
).
keypress
(
p_size
,
p_key
)
# pylint: disable=E1102
return
super
().
keypress
(
p_size
,
p_key
)
# pylint: disable=E1102
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment