Mit Hilfe von Matplotlob kann man auch Radiobuttons benutzen (http://matplotlib.sourceforge.net/matpl ... dgets.html). Allerdings gelingt es mir nicht den aktuellen Status des Radiobuttons bzw. welche Auswahlmöglichkeit aktiviert ist abzurufen.
Code: Alles auswählen
from pylab import *
from matplotlib.widgets import RadioButtons
rax = axes([0.025, 0.5, 0.15, 0.15], axisbg=axcolor)
radio = RadioButtons(rax, ('red', 'blue', 'green'), active=0)
def Aktion(label):
print label
radio.on_clicked(Aktion)
Wär super, wenn mir jemand helfen kann.