Comments (8)
Hi @AnubhaAgrawal,
Sorry but no, this file has nothing to do with that. When running the interactive editor using todo edit ...
, we want to show something that allows the user to move the task to a different task list. Please note this is a more difficult issue.
The entire editor interface is built up in TodoEditor.__init__
. The outermost widget is created on line 89, which chains all previous widgets (text fields, buttons) together.
-
We would have to create a new variable
self.current_list
which is initialized withtodo.list
. -
urwid.RadioButton
can do this, so you would have to create one radiobutton for each value inself.lists
. If the radio button changes,self.current_list
is changed to the new value -
In
_save_inner
,todo.list
is set toself.current_list
from todoman.
ok. I think firstly I'll try for some other issue
from todoman.
Hi, I am new I would like to take up this issue.
In my opinion, I would have to make changes in the code here.
Am I wrong?
from todoman.
Looks like @untitaker beat me and replied while I was still typing. Still, here goes.
Hi there! Thanks for your interest in todoman.
That's actually not right. Briefly:
cli.py
contains all the code involved in parsing commands/options and processing that. This is the starting point when running the app (and, admittedly, the more complex part, IMHO).models.py
contains all the code involved in reading/writing/processing data (todos, lists, etc).ui.py
has all the code for the User Interface, including theTodoEditor
class.
This issue is, mostly in ui.py
, and the above comments cover most of the relevant details.
from todoman.
sorry, for negative comment now I want to work on this issue.
can anyone tell that if I want to print the values in self.lists then how to I get them?
from todoman.
Hi, sorry for the slow response, if you want to find a different issue to work on that's fine of course.
I'm not sure if I understand your question. For this task you wouldn't have to print anything, but if you want to print the lists for debugging, print(self.lists) should be enough.
from todoman.
No, as you(@untitaker) say that you would have to create one radiobutton for each value in .self.lists. but I don't find the values in self.lists.
from todoman.
It appears self.lists
is a generator, but for list in self.lists
should still work. If you replace line 33
in ui.py
with self.lists = list(lists)
, you should see the values.
If you have time we can discuss this over IRC because this allows for faster back-and-forth communication.
from todoman.
Related Issues (20)
- Docs are filing to build on readthedocs HOT 1
- Docs are filing to build on readthedocs HOT 1
- Docs are filing to build on readthedocs HOT 1
- Navigating tasks with vim keys HOT 6
- todoman 4.3.0 not on pypi HOT 4
- 4.3.0: test_ctrl_c_clears fails HOT 3
- Click repl doesn't show up HOT 2
- categories with diacritics not handled well HOT 5
- Subcommand to get current configuration parameters HOT 1
- Can't run v4.3.2 on Slackware64-15.0 HOT 2
- Please release 4.4.0 at PyPi HOT 2
- Tasks template && time tracking HOT 1
- Flags in config file donβt apply to default commands HOT 1
- crash when creating new todo and reading description from stdin HOT 2
- Show one-line summaries when deleting multiple items
- Remember latest creation
- `todo categories` should show all categories
- Rethink flushing
- Exclude fields in list command HOT 1
- Feature request: Any plans on adding recurring tasks? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from todoman.