View Single Post
Old 09-27-2013, 09:05 AM   #96
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by reapertribal View Post
Hi
Spk77 ok now i will try it and i will inform
Sasje,spk77 and and whoever wants to investigate,to find a solution:
I have done three gif video with my Python and Tkinter setup
With these Gif You can see if is necessary to activate something or disable in preferences of Tkinter and Python to reaper can launch it successfully :

https://stash.reaper.fm/v/17968/Python%20Mac.gif

https://stash.reaper.fm/v/17969/Pytho...cher%20Mac.gif

https://stash.reaper.fm/v/17970/Tkinter%20Mac.gif

I think it would be interesting also another user mac do the Sasje & Spk77īs Test to see if them give the same resulted as me

Regards

Hi
Spk77 i have tried your test and nothing happens,no window appears

https://stash.reaper.fm/v/17971/Test-Spk77.gif
Ok, what happens if you try to run these scripts from IDLE?:

Test(no ttk widgets).py
Code:
import sys
sys.argv=["Main"]

import tkinter

class Test:

    def __init__(self, root):

        self.root = root
        self.root.title('Test')
        self.root.wm_attributes("-topmost", 1)
        self.mainFrame = tkinter.Frame(self.root, width=200, borderwidth=0, height=100)
        self.mainFrame.pack(expand=1)
        self.initWidgets()

    def initWidgets(self):
        self.hello = tkinter.Entry(self.mainFrame,width=22)
        self.hello.place(x=10, y=10)

        self.btns1 = tkinter.Button(self.mainFrame, text='Hi', width='25')
        self.btns1.place(x=10, y=40)
        self.btns1.bind('<Button-1>', lambda event: self.getVals())

    def getVals(self):
        self.hello.insert(tkinter.INSERT, 'Oh, hello!')

if __name__ == '__main__':
    root = tkinter.Tk()
    Test(root)
    root.mainloop()
Test(ttk widgets).py
Code:
import sys
sys.argv=["Main"]

import tkinter
from tkinter import ttk

class Test:

    def __init__(self, root):

        self.root = root
        self.root.title('Test')
        self.root.wm_attributes("-topmost", 1)
        self.mainFrame = ttk.Frame(self.root, width=200, borderwidth=0, height=100)
        self.mainFrame.pack(expand=1)
        self.initWidgets()

    def initWidgets(self):
        self.hello = ttk.Entry(self.mainFrame,width=22)
        self.hello.place(x=10, y=10)

        self.btns1 = ttk.Button(self.mainFrame, text='Hi', width='25')
        self.btns1.place(x=10, y=40)
        self.btns1.bind('<Button-1>', lambda event: self.getVals())

    def getVals(self):
        self.hello.insert(tkinter.INSERT, 'Oh, hello!')

if __name__ == '__main__':
    root = tkinter.Tk()
    Test(root)
    root.mainloop()
spk77 is offline   Reply With Quote