def OnSearchPath(self, event): dlg = TextEntryDialog( self, title="Set Part Search Path", caption="Part Search Path", tip= "Enter {sep}-separated list of directories in which to search for parts." .format(sep=os.pathsep), ) dlg.Center() dlg.SetValue(os.pathsep.join(lib_search_paths[KICAD])) if dlg.ShowModal() == wx.ID_OK: lib_search_paths[KICAD] = dlg.GetValue().split(os.pathsep) skidl_cfg.store() # Stores updated lib search path in file. dlg.Destroy()
def OnFootprintSearchPath(self, event): # Update search path for footprints. dlg = TextEntryDialog( self, title="Set Footprint Search Path", caption="Footprint Search Path", tip= "Enter {sep}-separated list of directories in which to search for fp-lib-table file." .format(sep=os.pathsep), ) dlg.Center() dlg.SetValue(os.pathsep.join(footprint_search_paths[KICAD])) if dlg.ShowModal() == wx.ID_OK: footprint_search_paths[KICAD] = dlg.GetValue().split(os.pathsep) skidl_cfg.store() # Stores updated search path in file. dlg.Destroy()