Ich hab mal eine Frage zum Thema Tkinter:
Wie kann ich ein Fenster zu einem kleinen Icon
neben meiner Windowsuhr (JA, ich bekenne mich schuldig: WINDOWS

Hat jemand da einen Befehl?
Ich weiss, das es gehen muss...
Danke,
Florian
Woher? Ich bin sicher, dass das Tkinter nicht leistet.Pythonaya hat geschrieben:Ich weiss, das es gehen muss...
Ich seh' da gar nichts von Tkinter. Auf der Homepage steht "Powered by : Python, wxPython, ...".Pythonaya hat geschrieben:Hier ist die Seite von dem oben genannten Prog (ABC):
http://pingpong-abc.sourceforge.net/download.html
Und hast Du sie Dir angeguckt? Da kommt kein Tkinter zum Einsatz. wxPython-Funktionen sind da für das Tray-Handling verantwortlich.Pythonaya hat geschrieben:Es gibt da insgesamt 4 Prozeduren für minimize to tray...
Code: Alles auswählen
import MyDll
Code: Alles auswählen
import sys
import os
import win32con
from win32api import *
from win32gui import *
from ctypes import *
hinst = GetModuleHandle(None)
iconPathName = "C:\Programme\Python23\Lib\img\plone.ico"
icon_flags = win32con.LR_LOADFROMFILE | win32con.LR_DEFAULTSIZE
hicon = LoadImage(hinst, iconPathName, win32con.IMAGE_ICON, 0, 0, icon_flags)
flags = NIF_ICON | NIF_MESSAGE | NIF_TIP
nid = (tk, 0, flags, win32con.WM_USER+20, hicon, "Plone")
print windll.shell32.Shell_NotifyIcon(NIM_ADD,nid)
Weiss einer, was er von mir will?print windll.shell32.Shell_NotifyIcon(NIM_ADD,nid)
TypeError: while constructing argument 2:
Don't know how to convert parameter 2