I2PC / scipion

Scipion is an image processing framework to obtain 3D models of macromolecular complexes using Electron Microscopy (3DEM)
http://scipion.i2pc.es
Other
76 stars 47 forks source link

Search box added to the projects list window #2040

Closed pconesa closed 5 years ago

pconesa commented 5 years ago

Add it if you wish

El mié., 28 ago. 2019 15:28, David Maluenda Niubó notifications@github.com escribió:

@dmaluenda approved this pull request.

It works pretty well. Very useful!

In pyworkflow/gui/project/viewprojects.py https://github.com/I2PC/scipion/pull/2040#discussion_r318579598:

     btnFrame.grid(row=0, column=0, sticky='nw')
  • self.columnconfigure(0, weight=1)
  • self.rowconfigure(1, weight=1)
  • text = TaggedText(self, width=40, height=15, bd=0, bg='white')
  • text.grid(row=1, columnspan=2, column=0, sticky='news')
  • self.createProjectList(text)
  • text.setReadOnly(True)
  • self.text = text
  • Add a filter box

  • Add the Import project button

  • btn = tk.Label(btnFrame, bg=bg, text="Filter:", font=self.projNameFont)
  • btn.grid(row=0, column=2, sticky='nse', padx=10, pady=10)
  • self.filterBox = tk.Entry(btnFrame, font=self.projNameFont, textvariable=self.filter)
  • self.filterBox.grid(row=0, column=3, sticky='ne', padx=10, pady=12)
  • self.filterBox.bind('', self._onFilter)

I would add the numpad return as well by adding this line after 103:

self.filterBox.bind('', self._onFilter)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/I2PC/scipion/pull/2040?email_source=notifications&email_token=AAF7ZYMEIER5JORT2KB4R43QGZ4QXA5CNFSM4IOIOO3KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCC6RTQY#pullrequestreview-280828355, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF7ZYPNIRB4YDJ3A5UETADQGZ4QXANCNFSM4IOIOO3A .