Skip to main content

tkinter winico extra x32

Project description

tkwinico

为Windows系统提供开发系统托盘的功能。

PyPI PyPI - Downloads PyPI - License

方法

load_winico

加载winico库

taskbar

用于创建、删除、修改托盘图标。

参数:

id

add 添加托盘图标
delete 删除托盘图标
modify 修改托盘图标
id="add"

procname

程序名称,可通过loadcreateformsetwindow的值得到。
procname=load("application")

callback

事件回调,可以设置为($root.register($func))$root为Tk窗口,$func为事件函数。

text

工具提示,需设置为任意字串符

info

参数

id

程序名称,可通过loadcreateformsetwindow的值得到。

示例

from tkwinico import *
import tkinter as tk


Window = tk.Tk()


def CallBack(Message, X, Y):
    if Message == WM_RBUTTONDOWN:
        Menu = tk.Menu(tearoff=False)
        Menu.add_command(label="Quit", command=Window.quit)
        Menu.tk_popup(X, Y)


taskbar(ADD, load(APPLICATION), (Window.register(CallBack), MESSAGE, X, Y))

Window.mainloop()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tkwinico-1.2.6.tar.gz (26.3 kB view hashes)

Uploaded Source

Built Distribution

tkwinico-1.2.6-py3-none-any.whl (27.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page