Tk eventloop
Hi
I try/struggle to use an ActiveX component in a Tk app. When i execute
it i can catch the first event and then when i try to change the value
of the w widget everything blocks and nothing is updated anymore.
Does someone have an idea of what is wrong and how to smartly integrate
these events with the Tk event loop.
Thx
Manu
import win32com.client
import pythoncom
import MyComponent
from Tkinter import *
class Event1(MyComponent.IEvents):
def OnUpdate(self, ItemName, UserTag):
global w
v = ptrAx.getV(ItemName)
print "%s" % v
w.configure(text='a')
root = Tk()
w = Label(root,text="test")
w.pack()
ptrAx = win32com.client.DispatchWithEvents(r'MyComponent',Event1)
ptrAx.StartUpdates()
root.mainloop()
.
Relevant Pages
- Requested Registry Access is Not Allowed
... We have several applications that will be executing on multiple machines. ... will execute the apps. ... There are Permission Sets within the framework configuration tool, ... The app fails on the WriteEntry and the exception that is thrown is ... (microsoft.public.dotnet.framework) - RE: Requested Registry Access is Not Allowed
... > We have several applications that will be executing on multiple machines. ... > will execute the apps. ... > There are Permission Sets within the framework configuration tool, ... > machine that the app will run. ... (microsoft.public.dotnet.framework) - Re: disable double clicking attachments
... Double click a file and the app opens. ... There's no prompt to save it before the default action takes place. ... It does once you flag their attachment directory as deny execute. ... (microsoft.public.outlook.general) - Re: Launching an app under Vista with UAP enabled
... prompts the user for permission before running th e app. ... We really need a way to launch an app without user ... The following "execute" function is used to launch an app using the ... bSuccess = OpenThreadToken( ... (microsoft.public.development.device.drivers) - Re: Auditing SP Execute.
... > As long as the users only have execute permissions on the proc i.e. they ... This assumes that the app doesn't use a single ... > Jasper Smith (SQL Server MVP) ... >> particular sp was execute and by whom. ... (microsoft.public.sqlserver.security) |
|