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
525f7349
Commit
525f7349
authored
Jun 21, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add property for setting the view of a column.
parent
7b5d3c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
topydo/ui/TodoListWidget.py
topydo/ui/TodoListWidget.py
+11
-2
No files found.
topydo/ui/TodoListWidget.py
View file @
525f7349
...
...
@@ -21,7 +21,7 @@ from topydo.ui.TodoWidget import TodoWidget
class
TodoListWidget
(
urwid
.
LineBox
):
def
__init__
(
self
,
p_view
,
p_title
):
self
.
view
=
p_view
self
.
_view
=
None
# store a state for multi-key shortcuts (e.g. 'gg')
self
.
keystate
=
None
...
...
@@ -30,7 +30,7 @@ class TodoListWidget(urwid.LineBox):
self
.
todolist
=
urwid
.
SimpleFocusListWalker
([])
self
.
listbox
=
urwid
.
ListBox
(
self
.
todolist
)
self
.
update
()
self
.
view
=
p_view
pile
=
urwid
.
Pile
([
(
1
,
title_widget
),
...
...
@@ -44,6 +44,15 @@ class TodoListWidget(urwid.LineBox):
urwid
.
register_signal
(
TodoListWidget
,
[
'execute_command'
])
@
property
def
view
(
self
):
return
self
.
_view
@
view
.
setter
def
view
(
self
,
p_view
):
self
.
_view
=
p_view
self
.
update
()
def
update
(
self
):
"""
Updates the todo list according to the todos in the view associated
...
...
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