Changeset - 37199cea3a2a
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 11 years ago 2014-06-15 18:21:16
drewp@bigasterisk.com
KC fix sortin
Ignore-this: 70ff3a7c177d1c60e4a2181639b91a6f
1 file changed with 7 insertions and 4 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -221,13 +221,16 @@ class KeyboardComposer(Frame, SubClient)
 
        # there are unlikely to be any subs at startup because we
 
        # probably haven't been called back with the graph data yet
 

	
 
        withgroups = sorted((self.graph.value(sub.uri, L9['group']),
 
                             self.graph.value(sub.uri, L9['order']),
 
                             sub)
 
        withgroups = sorted(
 
            (self.graph.value(sub.uri, L9['group']),
 
             self.graph.value(sub.uri, L9['order']),
 
             self.graph.label(sub), # todo: split numbers into ints so they sort right
 
             sub.uri, 
 
             sub)
 
            for sub in self.submasters.get_all_subs())
 
        log.info("withgroups %s", withgroups)
 

	
 
        for group, order, sub in withgroups:
 
        for group, order, _sortLabel, _sortUri, sub in withgroups:
 
            group = self.graph.value(sub.uri, L9['group'])
 

	
 
            if col == 0 or group != last_group:
0 comments (0 inline, 0 general)