Changeset 9383:229c884dcf3a in orange


Ignore:
Timestamp:
12/17/11 13:53:56 (2 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
f06cf343051b2dd57aa82d5d4f607a81e11a271a
Message:

Save state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Unsupervised/OWNxExplorer.py

    r9382 r9383  
    4747        "mdsFromCurrentPos", "labelsOnMarkedOnly", "tabIndex",  
    4848        "networkCanvas.trim_label_words", "opt_from_curr", "networkCanvas.explore_distances", 
    49         "networkCanvas.show_component_distances", "fontWeight"]  
     49        "networkCanvas.show_component_distances", "fontWeight", "networkCanvas.state"]  
    5050         
    5151        def __init__(self, parent=None, signalManager=None, name = 'Net Explorer',  
     
    259259             
    260260            self.toolbar = OWGUI.widgetBox(self.controlArea, orientation='horizontal') 
     261            prevstate = self.networkCanvas.state 
    261262            G = self.networkCanvas.gui 
    262263            self.zoomSelectToolbar = G.zoom_select_toolbar(self.toolbar, nomargin=True, buttons =  
     
    272273            self.zoomSelectToolbar.buttons[G.SendSelection].clicked.connect(self.send_data) 
    273274            self.zoomSelectToolbar.buttons[G.SendSelection].hide() 
     275            #NOTHING = 0 
     276            #ZOOMING = 1 
     277            #SELECT = 2 
     278            #SELECT_POLYGON = 3 
     279            #PANNING = 4 
     280            #SELECT_RECTANGLE = SELECT 
     281            #SELECT_RIGHTCLICK = SELECT 
     282            state_buttons = {0: 11, 1: 11, 2: 13, 3: 13, 4: 12} 
     283            self.zoomSelectToolbar.buttons[state_buttons[prevstate]].click() 
    274284             
    275285            self.reportButton = OWGUI.button(self.toolbar, self, "&Report", self.reportAndFinish, debuggingEnabled=0) 
Note: See TracChangeset for help on using the changeset viewer.