ich habe einen FileChooserDialog in Python erstellt. Nun möchte ich aber noch festlegen, welche Dateitypen (*.py, *.c, usw.) angezeigt und ausgewählt werden können.
Bis jetzt sieht die Klasse FileChooserDialog so aus:
Code: Alles auswählen
class FileChooserDialog(gtk.FileChooserDialog):
def __init__(self, action):
buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)
gtk.FileChooserDialog.__init__(self, action=action, buttons=buttons)