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()
# 高级示例3
import tktelerik
from tkinter import Tk
root = Tk()
theme = tktelerik.Windows11()
board = tktelerik.TaskBoard()
board.configure(theme="Windows11")
column1 = tktelerik.TaskBoardColumnElement()
card1 = tktelerik.TaskCardElement()
card2 = tktelerik.TaskCardElement()
column1.add_card(card1)
column1.add_card(card2)
column2 = tktelerik.TaskBoardColumnElement()
card3 = tktelerik.TaskCardElement()
card4 = tktelerik.TaskCardElement()
column2.add_card(card3)
column2.add_card(card4)
board.add_column(column1)
board.add_column(column2)
board.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.1.0a1.tar.gz
(6.7 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.1.0a1.tar.gz.
File metadata
- Download URL: tktelerik-1.1.0a1.tar.gz
- Upload date:
- Size: 6.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9cd40ba5fe83fff578b43d9cbbaa3960b8d6b6fb1af1f518461bb6753f1bfb6
|
|
| MD5 |
9745b789cbf49653fddcf536727c9e17
|
|
| BLAKE2b-256 |
dc22c511a9ca5b548252b39477d400b5b29c73416b7da1fe023758f10de9f6e4
|
File details
Details for the file tktelerik-1.1.0a1-py3-none-any.whl.
File metadata
- Download URL: tktelerik-1.1.0a1-py3-none-any.whl
- Upload date:
- Size: 6.8 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 |
4946480b91b71f1cc22dd67d5832ac21e7f510e219036fc65c4ad3ef136f72cf
|
|
| MD5 |
a68ebc55bc4161066625ce07db366e19
|
|
| BLAKE2b-256 |
e90a22f17d1f3fb4764cdd6798c230be10ffc9073df46842a2f49d04cb998d50
|