First time here? Check out the FAQ!

alexxx's profile - activity

2020-04-22 11:29:22 -0500 received badge Popular Question (source)
2020-04-22 11:29:22 -0500 received badge Notable Question (source)
2020-04-22 11:29:22 -0500 received badge Famous Question (source)
2019-09-16 08:02:53 -0500 marked best answer wingIDE not working with python3+tkinter ???

I started the long & painful transition of my tkinter program to python3... I discovered that I have to change the name of a lot of tkinter modules (see https://stackoverflow.com/questions/6...), but I'm stumped at this, that could be related to WingIDE:

Launching this code portion by itself works:

#!/usr/bin/python3

from tkinter import *
from tkinter import simpledialog

class PasswordDialog(simpledialog.Dialog):
    def body(self, master):
        Label(master, text="Password for file ").grid(row=0, sticky=W)
        self.e1 = Entry(master,show='*')
        self.e1.grid(row=0, column=1)
        self.attributes("-topmost", True)
        return self.e1
    def apply(self):
        p = self.e1.get()
        self.result = p


def main():
        root = Tk()
        pwd = PasswordDialog(root,title='Enter password').result
        print(pwd)
        mainloop()

main()

while if I write it from WingIDE and run it there by pressing F5, I get:

File "/usr/src/untitled-1.py", line 6, in <module>
  class PasswordDialog(simpledialog.Dialog):

AttributeError: 'module' object has no attribute 'Dialog'

can anybody see what's wrong???

2019-09-16 07:08:58 -0500 answered a question wingIDE not working with python3+tkinter ???

please, disregard my post: I just discovered that if I want to switch my projact to python3 it isnt sufficient to alter

2019-09-16 07:08:58 -0500 asked a question wingIDE not working with python3+tkinter ???

wingIDE not working with python3+tkinter ??? I started the long & painful transition of my tkinter program to python