def onButtonSnapedaClick(self, event):
     # create a snapeda frame
     # dropdown frame
     dropdown = DropdownDialog(self.button_snapeda, SelectSnapedaFrame,
                               self.edit_footprint_name.Value)
     dropdown.panel.Bind(EVT_SELECT_SNAPEDA_OK_EVENT,
                         self.onSelectSnapedaFrameOk)
     dropdown.Dropdown()
 def onButtonOctopartClick(self, event):
     # create an octopart frame
     # dropdown frame
     dropdown = DropdownDialog(self.button_octopart, SelectOctopartFrame,
                               self.edit_part_name.Value)
     dropdown.panel.Bind(EVT_SELECT_OCTOPART_OK_EVENT,
                         self.onSelectOctopartFrameOk)
     dropdown.Dropdown()
 def onButtonAddStoragePartClick( self, event ):
     item = self.tree_storages.GetSelection()
     if item.IsOk()==False:
         return
     obj = self.tree_storages_manager.ItemToObject(item)
     if isinstance(obj, DataModelStorage)==False:
         return
     
     dropdown = DropdownDialog(self.button_add_storage_part, SelectPartFrame, "")
     dropdown.panel.Bind( EVT_SELECT_PART_OK_EVENT, self.onSelectPartCallback )
     dropdown.Dropdown()
Exemple #4
0
 def onButtonSearchParameterClick(self, event):
     frame = DropdownDialog(self, SelectPartParameterFrame, "")
     frame.DropHere(self.onSelectPartParameterFrameOk)
Exemple #5
0
 def onButtonSnapedaClick( self, event ):
     # create a snapeda frame
     # dropdown frame
     dropdown = DropdownDialog(self.button_snapeda, SelectSnapedaFrame, initial_search=self.edit_symbol_name.Value, preview='symbol')
     dropdown.panel.Bind( EVT_SELECT_SNAPEDA_OK_EVENT, self.onSelectSnapedaFrameOk )
     dropdown.Dropdown()
Exemple #6
0
 def onButtonAddBomPartClick( self, event ):
     dropdown = DropdownDialog(self.button_add_bom_part, SelectPartFrame, "")
     dropdown.panel.Bind( EVT_SELECT_PART_OK_EVENT, self.onSelectPartCallback )
     dropdown.Dropdown()
 def onMenuPartsLinkSelection(self, event):
     dropdown = DropdownDialog(self.tree_parts, SelectPartFrame, "")
     dropdown.panel.Bind(EVT_SELECT_PART_OK_EVENT,
                         self.onSelectPartCallback)
     dropdown.Dropdown()
 def onMenuParametersAddSelection( self, event ):
     frame = DropdownDialog(self, SelectPartParameterFrame, "")
     frame.DropHere(self.onSelectPartParameterFrameOk)