[Bugs] #1586 UNSP: TreeView widget

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sat Nov 28 00:49:05 EST 2009


#1586: TreeView widget
------------------------------------------+---------------------------------
    Reporter:  alsroot                    |          Owner:  erikos           
        Type:  enhancement                |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.88             
   Component:  sugar-toolkit              |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  Unconfirmed      
------------------------------------------+---------------------------------

Comment(by alsroot):

 Replying to [comment:1 alsroot]:
 > Replying to [comment:6 tomeu]:
 > >
 > > How we use to do this is by having an abstract method that concrete
 subclasses can implement. In python is very easy and powerful to pass
 around references to methods but gets messy very quickly because it's hard
 to find where is defined the method that will be called. Every time you
 are tempted to pass a method reference, consider using instead an abstract
 method or a signal.
 >
 > well, new_cell, for example, could be a class or closure function
 > so in case of using SmootTable in user code, he should create new class
 to redefine only these two functions, brrr...

 I changed SmartTable so it has the same ctor arguments as TableView
 (SmartTable relies on having do_fill_in() method in passed class)

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1586#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list