Skip to main content

tkinter with telerik

Project description

tktelerik

来自WinForms界面扩展库做出来的组件

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


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.0a5.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tktelerik-1.0.0a5-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

Details for the file tktelerik-1.0.0a5.tar.gz.

File metadata

  • Download URL: tktelerik-1.0.0a5.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

Hashes for tktelerik-1.0.0a5.tar.gz
Algorithm Hash digest
SHA256 a01c174c4f5063259f1aeeb65eac95da4065e48774e5144bfd5a567faec05ab9
MD5 db5c259d389b85060205b387cdb31ebd
BLAKE2b-256 b72f75b216d6cb77685eac968be0e386c99405dfc07f75be68df9fb6045886ec

See more details on using hashes here.

File details

Details for the file tktelerik-1.0.0a5-py3-none-any.whl.

File metadata

  • Download URL: tktelerik-1.0.0a5-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

Hashes for tktelerik-1.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 f46b1dd9ac7ad1693610e12f6c6144eb5cbfbad7cfafc992684b94ece4bc4d2f
MD5 16e8f9dd03aa9ee4e835ede2e050f451
BLAKE2b-256 0d27bc3d99a6a7c150bae18d214094009e351ac0a89f505e20f30890a16c16c2

See more details on using hashes here.

Supported by

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