Re: IDLE editor suggestion.

Liste des GroupesRevenir à cl python 
Sujet : Re: IDLE editor suggestion.
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 13. Dec 2023, 19:49:11
Autres entêtes
Organisation : Stefan Ram
Message-ID : <Combobox-20231213194742@ram.dialup.fu-berlin.de>
References : 1
"Steve GS" <Gronicus@SGA.Ninja> writes:
It would be nice to have a
pull-down text box that lists
all of the searches

  I tried to get such a box by changing the file "searchbase.py"
  of the IDLE source code adding ", Combobox" to the line

from tkinter.ttk import Frame, Entry, Label, Button, Checkbutton, Radiobutton

  and replacing

Entry(self.frame, textvariable=var, exportselection=0)

  by

Combobox( self.frame, textvariable=var, exportselection=0,
  values=[ 'alpha', 'beta', 'gamma' ])

  . However, when I try it out, it seems to work for some time, but
  then IDLE freezes when trying to open a new search box.

  (If this problem could be solved, one would still need to add
  some more code to add to the search strings to the value list.)



Date Sujet#  Auteur
13 Dec 23 * Re: IDLE editor suggestion.2Stefan Ram
14 Dec 23 `- Re: IDLE editor suggestion.1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal