Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /leo/plugins/cleo.py

leo
Discussion topic

Back to topic list

CVS update: /leo/plugins/cleo.py

Author terry_n_brown
Full name Terry Brown
Date 2006-10-21 08:27:27 PDT
Message User: terry_n_brown
Date: 2006-10-21 08:27:27-0700
Log:
 Submitted by: Terry Brown
  
 
 Added top level menu items for priority and time required
 using two column menu layout

File Changes:

Directory: /leo/plugins/
========================

File [changed]: cleo.py
Url: http://leo.tigris.or​g/source/browse/leo/​plugins/cleo.py?r1=1​.5&r2=1.6
Delta lines: +27 -3
--------------------
--- cleo.py 2006-09-29 10:27:12-0700 1.5
+++ cleo.py 2006-10-21 08:27:24-0700 1.6
@@ -922,10 +922,28 @@
         parent.add_cascade(label='Node types',underline=0,menu=menu)
     #@nonl
     #@-node:tbrown.20060​903121429.51:node menu
+ #@+node:tbrown.20061​020145804:left_prior​ity_menu
+ def left_priority_menu(self, menu, p):
+ self.prep_pickle(p.v, 'priority', default=9999)
+ for value,label in (
+ (1,'1'),
+ (2,'2'),
+ (3,'3'),
+ (4,'4',),
+ (5,'5',),
+ (self.donePriority,'D'),
+ ):
+ s = '%s' % (label)
+ menu.add_radiobutton(
+ label=s,variable=sel​f.pickles['priority'​],value=value,
+ command=self.redraw,​underline=0)
+ #@nonl
+ #@-node:tbrown.20061​020145804:left_prior​ity_menu
     #@+node:tbrown.20060​903121429.52:priorit​y_menu
     def priority_menu(self,parent,p):
     
- self.prep_pickle(p.v, 'priority', default=9999)
+ # done already in left_priority menu
+ # self.prep_pickle(p.v, 'priority', default=9999)
     
         menu = Tk.Menu(parent,tearo​ff=0,takefocus=1)
     
@@ -1047,7 +1065,13 @@
         
         # Create the menu.
         self.menu = menu = Tk.Menu(None,tearoff​=0,takefocus=0)
- menu.add_command(label='Find next todo',
+
+ self.left_priority_menu(menu, p)
+
+ menu.add_command(label='T',
+ underline=0,command=​lambda:self.set_time​_req(p))
+
+ menu.add_command(label='Find next todo', columnbreak=1,
             underline=0,command=​lambda:self.find_tod​o(p))
         self.priority_menu(menu,p)
         self.progress_menu(menu,p)

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /leo/plugins/cleo.py terry_n_brown Terry Brown 2006-10-21 08:27:27 PDT
Messages per page: