Ignore:
Timestamp:
10/16/12 17:22:01 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Improved keyboard control and styling in quick menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/tests/test_tooltree.py

    r11106 r11131  
    77 
    88from ..tooltree import ToolTree 
     9 
     10from ...registry.qt import QtWidgetRegistry 
     11from ...registry.tests import small_testing_registry 
    912 
    1013from ..test import QAppTestCase 
     
    3134        model.appendRow([cat]) 
    3235 
     36        def p(action): 
     37            print "triggered", action.text() 
     38 
     39        tree.triggered.connect(p) 
     40 
    3341        tree.show() 
    3442 
     
    3644 
    3745    def test_tooltree_registry(self): 
    38         from ...registry.qt import QtWidgetRegistry 
    39         from ...registry.tests import small_testing_registry 
    4046        reg = QtWidgetRegistry(small_testing_registry()) 
    4147 
     
    4551        tree.show() 
    4652 
     53        def p(action): 
     54            print "triggered", action.text() 
     55        tree.triggered.connect(p) 
     56 
    4757        self.app.exec_() 
Note: See TracChangeset for help on using the changeset viewer.