View Single Post
Old 01-07-2018, 09:52 AM   #261
Maui
Connoisseur
Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.
 
Maui's Avatar
 
Posts: 57
Karma: 600000
Join Date: Jan 2018
Device: Galaxy Tab S2
tk.withdraw

Hi,

i hope this is now my last issue transfering my stuff from win to mac.

i have one self written plugin which isnt working correctly under mac os x, but works fine under win.

I've already installed the activestate tcl and i've on ly a problem now with my own script. I've nailed that down to this:

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
# target script
 
from tkinter import *
from tkinter import messagebox

def run(bk):
 
    root = Tk()
#    root.withdraw()
 
    print('Start\n')

    if messagebox.askyesno("Testquestion", "Ok to go on?"):
        print('Middle\n')
        
    print('End\n')
    
    return 0

def main():
    print ('I reached main when I should not have\n')
    return -1
 
if __name__ == "__main__":
    sys.exit(main())
commenting out the withdraw() call makes this working, but i'm getting an additional empty window which i don't want to have. Executing the withdraw() function hides the empty window as well as the messagebox As i now cant give any input the Launcher stops at "Start" is not coming to middle or end.


What am i doing wrong?

Greets
Maui
Maui is offline   Reply With Quote