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
b4f281a6
Commit
b4f281a6
authored
Nov 18, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redraw screen when todo.txt is modified externally
parent
a217dab9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
topydo/ui/columns/Main.py
topydo/ui/columns/Main.py
+5
-1
No files found.
topydo/ui/columns/Main.py
View file @
b4f281a6
...
@@ -112,6 +112,7 @@ class UIApplication(CLIApplicationBase):
...
@@ -112,6 +112,7 @@ class UIApplication(CLIApplicationBase):
self
.
todolist
.
erase
()
self
.
todolist
.
erase
()
self
.
todolist
.
add_list
(
self
.
todofile
.
read
())
self
.
todolist
.
add_list
(
self
.
todofile
.
read
())
self
.
_update_all_columns
()
self
.
_update_all_columns
()
self
.
_redraw
()
self
.
column_width
=
config
().
column_width
()
self
.
column_width
=
config
().
column_width
()
self
.
todofile
=
TodoFile
.
TodoFile
(
config
().
todotxt
(),
callback
)
self
.
todofile
=
TodoFile
.
TodoFile
(
config
().
todotxt
(),
callback
)
...
@@ -558,13 +559,16 @@ class UIApplication(CLIApplicationBase):
...
@@ -558,13 +559,16 @@ class UIApplication(CLIApplicationBase):
self
.
_console_visible
=
True
self
.
_console_visible
=
True
self
.
console
.
print_text
(
p_text
)
self
.
console
.
print_text
(
p_text
)
def
_redraw
(
self
):
self
.
mainloop
.
draw_screen
()
def
_input
(
self
,
p_question
):
def
_input
(
self
,
p_question
):
self
.
_print_to_console
(
p_question
)
self
.
_print_to_console
(
p_question
)
# don't wait for the event loop to enter idle, there is a command
# don't wait for the event loop to enter idle, there is a command
# waiting for input right now, so already go ahead and draw the
# waiting for input right now, so already go ahead and draw the
# question on screen.
# question on screen.
self
.
mainloop
.
draw_screen
()
self
.
_redraw
()
user_input
=
self
.
mainloop
.
screen
.
get_input
()
user_input
=
self
.
mainloop
.
screen
.
get_input
()
self
.
_console_visible
=
False
self
.
_console_visible
=
False
...
...
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