tkinter with telerik
Project description
tktelerik
来自WinForms界面扩展库做出来的组件
Telerik
原项目需要付费使用,请谨慎使用 依赖,需下载Telerik主程序,也可以
# 基础示例1
import tktelerik
from tkinter import Tk
root = Tk()
theme1 = tktelerik.FluentDark()
button = tktelerik.Button(text="button1")
button.configure(theme="FluentDark")
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 基础示例2
import tktelerik
from tkinter import Tk
root = Tk()
theme1 = tktelerik.FluentDark()
list1 = tktelerik.ListBox()
list1.configure(theme="FluentDark")
for index in range(4):
list1.add(list1.create_label("item"+str(index+1)))
list1.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 高级示例1
import tktelerik
from tkinter import Tk
root = Tk()
theme1 = tktelerik.FluentDark()
ribbon = tktelerik.RibbonBar()
ribbon_quick_item = tktelerik.RibbonButton()
ribbon_quick_item.onclick(lambda: print("click ribbon_quick_button"))
ribbon.add_item(ribbon_quick_item)
ribbon_tab = tktelerik.RibbonTabbed()
ribbon_group = tktelerik.RibbonGroup()
ribbon_button = tktelerik.RibbonButton()
ribbon_button.onclick(lambda: print("click ribbon_button"))
ribbon_button.configure(anchor="w")
ribbon_textbox = tktelerik.RibbonTextBox()
ribbon_textbox.configure(anchor="w")
ribbon_group.add(ribbon_button)
ribbon_group.add(ribbon_textbox)
ribbon_tab.add(ribbon_group)
ribbon.add(ribbon_tab)
ribbon.configure(theme="FluentDark")
ribbon.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 高级示例2
# 如电脑配置不高,请不要高频率点击移动,否则容易卡死
import tktelerik
from tkinter import Tk
root = Tk()
theme1 = tktelerik.Windows11()
nav = tktelerik.NavigationView()
nav.configure(theme="Windows11")
controls = tktelerik.PageViewPage(nav=nav)
controls.configure(text="controls")
button1 = tktelerik.Button(controls.frame())
button1.configure(theme="Windows11", text_anchor_ment="w")
button1.pack(fill="x", padx=10, pady=10)
textbox1 = tktelerik.TextBox(controls.frame())
textbox1.configure(theme="Windows11")
textbox1.pack(fill="x", padx=10, pady=10)
textbox2 = tktelerik.TextBox(controls.frame())
textbox2.configure(multiline=True, theme="Windows11")
textbox2.pack(fill="both", ipady=50, padx=10, pady=10)
nav.add_page(controls)
nav.pack(fill="both", expand="yes")
root.mainloop()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tktelerik-1.0.0.tar.gz
(6.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tktelerik-1.0.0.tar.gz.
File metadata
- Download URL: tktelerik-1.0.0.tar.gz
- Upload date:
- Size: 6.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d96a0c59cade4e58f419488a7c7ccdc1088502b3fe87683cb1b8576313cc1dd9
|
|
| MD5 |
abe32999ec3788fe1a66022ba482652f
|
|
| BLAKE2b-256 |
c1934ed9690f463cd5720a2f3b4eac54de22cc5ac8c1efca2c744fdf0074937d
|
File details
Details for the file tktelerik-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tktelerik-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6898aa81edbece054bc1d68f94f8d040fed8f127d187dfcfd0e3b52768daf7aa
|
|
| MD5 |
50277ac76421bb77442815377af345e6
|
|
| BLAKE2b-256 |
6a8f21a282abd990c16bf198ec232ed024fed2d8fd90a0af722b0ee4e8f54f5d
|