[issue11387] Tkinter, callback functions

2011-03-06 Thread Nikolay Fomichev
Nikolay Fomichev added the comment: Here it is... import sys if sys.version_info[0] == 3: import tkinter as tk from tkinter import messagebox from tkinter import filedialog else: import Tkinter as tk import tkMessageBox as messagebox import tkFileDialog as filedialog

[issue11387] Tkinter, callback functions

2011-03-03 Thread Nikolay Fomichev
New submission from Nikolay Fomichev : A simple code: class App(): def __init__(self): self.root = tk.Tk() self.btn = tk.Button(self.root, text='Click me') self.btn.pack() self.btn.bind('', self.click) self.root.mainloo