Die Suche ergab 2 Treffer

von gregix
Freitag 19. April 2019, 11:31
Forum: Tkinter
Thema: Listbox auswahl als Int
Antworten: 26
Zugriffe: 2782

Re: Listbox auswahl als Int

from tkinter import *
Win = Tk()

file = ("a","b","c")

listbox = Listbox(Win, height=5)
listbox.pack()

for i in file:
listbox.insert("end", i)

def DEL():
sel = listbox.curselection()[0]
print(sel, file[sel])

minus = Button(Win, text="Hallo", command = DEL)
minus.pack()
Win.mainloop ...
von gregix
Mittwoch 17. April 2019, 19:35
Forum: Allgemeine Fragen
Thema: Entwicklungsumgebung
Antworten: 8
Zugriffe: 3914

Re: Entwicklungsumgebung

Hallo,
bin ein Python-Anfänger.
Es gibt als Entwicklungsumgebung bestimmt bessere, aber zum lernen
von Python gefällt Thonny mir sehr gut.

https://thonny.org/
Thonny: Python-IDE für Programmieranfänger

mfg
Gregor