Saravanan666/pypi-org huggingface dataset:
Package: tkcalendar2
tkcalendar2基于WinForms.MonthCalendar的tkinter富文本显示组件。目前仅提供基础显示功能。更多功能请调用self.ca实现。Dependencetkrichtext uses this package:pythonnet(clr)Usage(TkCalendar Class)Demo:fromtkinterimportTkfromtkcalendar2importTkCalendara=Tk()a.geometry('600x600+5+5')ca=TkCalendar(a,500,500)ca.pack(fill='both',expand='True')ca.date_selected(print)ca.date_changed(print)ca.max_selection_count(20)a.mainloop()date_selected(func)::日期被选择时回调的函数。func(this,start_day,end_day)date_changed(func)::日历被单击选中时回调的函数。func(this,day)max_selection_count(days)::最大选择天数。
Package: tkCanvasGraph
tkCanvasGraph is a Python library that implements a tkinter canvas on which
users can display and manipulate graphs.The documentation is available onhttp://tkCanvasgraph.readthedocs.io/.A small example of its usage:importtkinterfromtkCanvasGraphimportCanvasFrame,Vertex,Edgeroot=tkinter.Tk()frame=CanvasFrame(root)frame.pack(fill="both",expand=True)v1=Vertex(frame.canvas,label="vertex1")frame.canvas.add_vertex(v1)v2=Vertex(frame.canvas,label="vertex2")frame.canvas.add_vertex(v2)edge=Edge(frame.canvas,v1,v2,label="edge")frame.canvas.add_edge(edge)root.mainloop()It creates a new tkinter window, fills it with aCanvasFrame(a tkinter
frame containing a tkCanvasGraphframe.canvas, but also buttons to apply
layouts, and scrollbars), then add two vertices and one edge.Another example is thetkCanvasGraph/__main__.pyfile:python -m tkCanvasGraphIt opens a similar window with additional functionalities:new vertices can be created with CTRL + left click,new edges by maintaining CTRL and dragging and dropping the mouse from
one vertex to another,elements can be deleted with CTRL + right click,labels can be modified by right-clicking on any element,“j” key will create a new vertex in a random position,“k” key will create a new edge between two vertices without an edge,“o” key will apply one step of the force based layout.Look at the code to get more insight on how to use the library.
Package: tkcap
__      __
  /  |    /  |
 _$$ |_   $$ |   __   _______   ______    ______
/ $$   |  $$ |  /  | /       | /      \  /      \
$$$$$$/   $$ |_/$$/ /$$$$$$$/  $$$$$$  |/$$$$$$  |
  $$ | __ $$   $$<  $$ |       /    $$ |$$ |  $$ |
  $$ |/  |$$$$$$  \ $$ \_____ /$$$$$$$ |$$ |__$$ |
  $$  $$/ $$ | $$  |$$       |$$    $$ |$$    $$/
   $$$$/  $$/   $$/  $$$$$$$/  $$$$$$$/ $$$$$$$/
                                        $$ |
                                        $$ |
                                        $$/A wrapper for tkinter window for taking its screenshot.Ghanteyyyhttp://github.com/ghanteyyyMIT LicenseRequirements and Tested PlatformsPython:3.xWindows:Windows 10 & 11Installationtkcap is available on PyPI. You can install it through pip:pip install tkcapUsageimporttkcapcap=tkcap.CAP(master)# master is an instance of tkintercap.capture(FileName)# Capture and Save the screenshot of the tkiner window# If you want the x_pos, y_pos, width and height of the tkinter window.region=cap.get_region()# If you want to bind the key so that everytime you press that key# captures the screenshot. Here I have binded to "Control g"master.bind('<Control-g>',lambda:cap.capture(FileName))
Package: tkcefview
tkcefviewpywebview inspired tkinter framed cefpython3Installation<# from master branch(git) #>pip3installgit+https://github.com/eseunghwan/tkcefview.git<# from pypi #>pip3installtkcefviewBasic Usageimporttkcefviewastctc.initialize()tc.create_window("http://www.google.com")tc.start()Debug Modeimporttkcefviewastctc.initialize()tc.create_window("[{my_html_file}](http://www.google.com)")tc.start(debug=True)Javascript APIimporttkcefviewastcclassMyAPI(tc.BrowserAPI):# properties, methods, and so oncount=0defcount_up(self):self.count+=1self.update_count()defcount_down(self):ifself.count>0:self.count-=1self.update_count()defupdate_count(self):self.execute_function("update_count",self.count)tc.initialize()tc.create_window("{my_html_file}",js_api=MyAPI)tc.start()
Package: tkcolorpicker
Color picker dialog for Tkinter.This module contains aColorPickerclass which implements the color picker
and anaskcolorfunction that displays the color picker and
returns the chosen color in RGB and HTML formats.RequirementsLinux, Windows, MacPython 2.7 or 3.xAnd the python packages:tkinter (included in the python distribution for Windows)PillowInstallationUbuntu: use the PPAppa:j-4321-i/ppa$ sudo add-apt-repository ppa:j-4321-i/ppa
$ sudo apt-get update
$ sudo apt-get install python(3)-tkcolorpickerArchlinux:the package is available onAURWith pip:$ pip install tkcolorpickerDocumentationSyntax:askcolor(color="red", parent=None, title=_("Color Chooser"), alpha=False)Open a ColorPicker dialog and return the chosen color.The selected color is returned as a tuple (RGB(A), #RRGGBB(AA))
(None, None) is returned if the color selection is cancelled.Arguments:color: initially selected color, supported formats:RGB(A)#RRGGBB(AA)tkinter color name (seehttp://wiki.tcl.tk/37701for a list)parent: parent windowtitle: dialog titlealpha: alpha channel suppportExampleimporttkinterastkimporttkinter.ttkasttkfromtkcolorpickerimportaskcolorroot=tk.Tk()style=ttk.Style(root)style.theme_use('clam')print(askcolor((255,255,0),root))root.mainloop()
Package: tkcommon
tkcommontkcommon is a collection of small Python functions and classes for building scripts and internal tools.InstallationThe package can be installed throughpip:pipinstalltkcommonUsagefromtkcommonimportget_logger,post_to_slackfromtkcommonimportinit_config,get_configfromtkcommonimportcreate_jira_issue,update_jira_issuelogger=get_logger(__name__)logger.info("Test log")post_to_slack(message="Test slack message")init_config(from_env=True,json_file="./config.json")secret=get_config("mongo_connection","mongodb://user:password@localhost:27017/database")issue_fields={"project":{"id":123},"summary":"New issue from jira-python","description":"Look into this one","issuetype":{"name":"Bug"},}issue=create_jira_issue(issue_fields)update_issue_fields={"summary":"New issue from jira-python","description":"Look into this one",}issue=update_jira_issue(jira_id="CDMS-1234",fields=update_issue_fields,notify=True)
Package: tkcomponents
tkcomponentsAn OOP framework for Tkinter, inspired by ReactQuickstartSetupBelow is an example of a custom component, a number label which updates its value periodically.fromtkinterimportLabel,IntVarfromtkcomponentsimportComponentclassCounter(Component):def__init__(self,container):super().__init__(container,update_interval_ms=250)# The component will update 4 times per secondself._count__var=IntVar()self._count__var.set(0)@propertydef_needs_render(self):returnself._count__var.get()%5==0# A full re-render will trigger on multiples of 5def_update(self):current_count=self._count__var.get()self._count__var.set(current_count+1)# The counter will increase by 1 each update, a total of +4 per seconddef_render(self):Label(self._frame,textvariable=self._count__var).pack()App BoilerplatefromtkinterimportTkclassApp:def__init__(self):self.window=Tk()Counter(self.window).render().pack()# Note that .render() is called from outside the component, not ._render()self.window.mainloop()if__name__=="__main__":App()
Package: tkcrypteo
This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package to [PyPi] using [Twine], without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)LicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: tkctl
TKCTLSynopsisThis tools is designed to help our Consultants to manages configuration profiles.Use Case for today's fuse (17.02.2020) setup a VPC on 3 main cloud providers, setup a kubernetes cluster.GoalsInitial cli with the following command line args:init---cloudaws,gcp,azureapplyvalidatedestroy3 modules vpcgcpazureawsManaged Kubernetens - Phase 1ClusterAPI for Kubernetes initialization
Package: tk-cyberpunk-theme
Demo app without and with tk-cyberpunk-themeCyberpunk Themetk-cyberpunk-themeis the default dark theme forPyrustic Framework.InstallationAvailable on PyPI:pipinstalltk-cyberpunk-themeUsageWith apyrusticpowered project:frompyrustic.appimportAppfromtk_cyberpunk_themeimportCyberpunkfromdemo.view.main_viewimportMainViewdefmain():# The Appapp=App(__package__)# Set themeapp.theme=Cyberpunk()# Set viewapp.view=MainView(app)# it could be a Tkinter object# Center the windowapp.center()# Lift off !app.start()if__name__=="__main__":main()With a basicTkinterproject:importtkinterastkfromtk_cyberpunk_themeimportCyberpunk# rootroot=tk.Tk()# apply the themetheme=Cyberpunk()theme.target(root)# add widgets to rootbutton=tk.Button(root,text="Hello Friend !")button.pack()# and more...# the main loop !root.mainloop()Create your own themeA guide will be written soon. This is a work in progress. Bookmark this project and come later...Desktop Apps Using tk-cyberpunk-theme As Base ThemeLearn more about these following desktop applicationshere!Hubstore - To Connect Apps With UsersJupitest - The Graphical Test RunnerRustiql - The Graphical SQL EditorHubway - Release Your App To The World
Package: tkDataCanvas
tkDataCanvasis a tabular data display widget for Python + Tkinter. It is intended as a more efficient replacement fortkMagicGridandtkScrolledFramefor displaying large amounts of static data.tkDataCanvas is designed to be simple above all else. It has no dependencies outside the Python standard library. Its API is designed to let you accomplish tasks with as few method calls as possible.Both Python 2 and 3 are supported, on Windows and Unix platforms.UsagetkDataCanvas consists of a single module,tkdatacanvas(note the module name is lowercase), which exports a single class,DataCanvas.A brief example program:#!/usr/bin/env python3fromtkinterimport*fromtkdatacanvasimportDataCanvasimportioimportcsv# Create a root windowroot=Tk()# Create a DataCanvas widgetdc=DataCanvas(root)dc.pack(side="top",expand=1,fill="both")# Display the contents of some CSV filewithio.open("test.csv","r",newline="")ascsv_file:reader=csv.reader(csv_file)parsed_rows=0forrowinreader:ifparsed_rows==0:# Display the first row as a headerdc.add_header(*row)else:dc.add_row(*row)parsed_rows+=1dc.display()# Start Tk's event looproot.mainloop()For detailed documentation, trypython -m pydoc tkdatacanvas.
Package: tk-datepicker
Calendar for your Tkinter applicationInstallationpip3 install tk_datepickerQuick startThe Datepicker class from the tk_datepicker module takes 2 arguments: an input class object for displaying the date and any object from the tkinter module that will open the calendar when clickedfromtkinterimportTk,Entry,Buttonfromtk_datepickerimportDatepickerroot=Tk()root.geometry("600x600")entry=Entry()entry.pack()button=Button(text="Click me!")button.pack()dp=Datepicker(entry,button)root.mainloop()Output:Calendar appearance settingsYou can use the ui_settings method of the Datepicker class object to change the colorsdp=Datepicker(entry,button)dp.ui_settings(days_bg="#888",days_fg="#FFF",t_days_bg="#FFF",t_days_fg="#FFF",back_month_text="<= Back",next_month_text="Next =>")Output:Full list of customizations:вЂў ctrl_btn_bg - Change month button background color
вЂў ctrl_btn_fg - Change month button foreground color
вЂў ctrl_lbl_bg - Name of the month background color
вЂў ctrl_lbl_fg - Name of the month foreground color
вЂў ctrl_border - Border size for items that are higher
вЂў back_month_text - Last month button text
вЂў next_month_text - Next month button text
вЂў week_days_bg - Names of the days of the week background color
вЂў week_days_fg - Names of the days of the week foreground color
вЂў week_border - Names of the days of the week border size
вЂў days_bg - Days of this month background color
вЂў days_fg - Days of this month foreground color
вЂў days_border - Days of this month border size
вЂў t_days_bg - Days not of this month background color
вЂў t_days_fg - Days not of this month foreground color
вЂў t_days_border - Days not of this month border size
вЂў output_format - Date output format (default "%Y.%m.%d")Calendar renderingThe calendar is rendered relative to the object it is attached to. The calendar tries to find free space to render in this order:1) TOP CENTER
2) TOP LEFT
3) TOP RIGHT
4) BOTTOM CENTER
5) BOTTOM LEFT
6) BOTTOM RIGHT
7) RIGHT CENTER
8) LEFT CENTERIn case the calendar cannot find a place to render, it will be rendered from x=0, y=0, keep that in mind
Package: tkdeft
tkdeft意为灵巧，灵活轻巧好用继tkadw之后的tkinter的现代化界面库开发中原理先使用svgwrite进行矢量作图（默认会将其存储到临时文件夹中），再用tksvg打开图片，将图片利用Canvas或Label显示出来这其中还是有些坑的，比如图片不显示等计划未来我打算先制作出SunValley设计的库然后就去做别的项目设计来源：https://pixso.cn/community/file/ItC5JH1TOwj15EeOPcY7LQ?from_share为什么不像tkadw一样做跟易用的主题？因为svg能实现很多漂亮的组件，而我套的模板可能不对其它设计其太大的作用所以我将这个设计库放在这里当做模板，供其它设计者参考使用。更新日志2024-01-22发布0.0.1版本，模板组件包括DButton2023-01-23发布0.0.2版本，补充模板组件DEntry、DFrame、DText,DBadge2023-01-25发布0.0.30.0.4版本，粗心了，两次补充依赖
发布0.0.5版本，模板组件主题由theme(mode=..., style=...)设置，不再使用如DDarkButton这样的，添加DWindow.wincustom自定义窗口（仅限Windows）
发布0.0.6版本，模板组件DBadge补充样式style=accent，并对自定义窗口进行稍微调整2023-01-26发布0.0.7版本，模板库Fluent已移至tkfluent库
Package: tkdesigner
Tkinter DesignerAutomate Tkinter GUI CreationTranslations简体中文Françaisગુજરાતીहिन्दीItalianoعربيةTurkishBrazilSpanishमराठी💡 IntroductionTkinter Designer was created to speed up the GUI development process in Python. It uses the well-known design softwareFigmato make creating beautiful Tkinter GUIs in Python a piece of cake 🍰.Tkinter Designer uses the Figma API to analyze a design file and create the respective code and files needed for the GUI. Even Tkinter Designer's GUI is created using Tkinter Designer.📢 Announcement🎉 Multi frame support is here! 🎉You can now create multiple frames in a single design file and Tkinter Designer will create the respective code and files for each frame. This is a huge step for Tkinter Designer and I'm really excited to see what you guys create with it.Feel free to share your creations with the community onDiscord.If you encounter any bugs or have any suggestions, please create an issuehere.☄️  Advantages of Tkinter DesignerInterfaces with drag and drop.A great deal quicker than writing code by handProduce more gorgeous interfaces⚡️ Read the instruction hereView the YouTube video or read the instructions below.🦋 Supporting Tkinter DesignerConsider making a donation to the Tkinter Designer project if you or your business have benefited from it. This will accelerate Tkinter Designer's development! Making coffee is simple; I'll be happy to enjoy one.🔵 Discord server & LinkedinClick the button below to join the discord server or Linkedin📐 How it WorksThe only thing the user needs to do is design an interface with Figma, and then paste the Figma file URL and API token into Tkinter Designer.Tkinter Designer will automatically generate all the code and images required to create the GUI in Tkinter.🎯 ExamplesThe possibilities are endless with Tkinter Designer, but here are a couple of GUIs that can be perfectly replicated in Tkinter.The following are not my creations.HotinGo(More Info)CodTubify(More Info)BeAnonymous(More Info)Frame Recorder(More Info)WhatBulk(More Info)Atarbals-Modern-Antivirus(More Info)🔥 ShowcasePlease let me know if Tkinter Designer was used to create your app. More illustrations will be
beneficial for other people!(See:Contact Me) or useShow and Tellsection in Discussions.📄 LicenseTkinter Designer is licensed under the BSD 3-Clause "New" or "Revised" License.View Here.PermissionsRestrictionsConditions✓ Commercial Use× Liability🛈 License and Copyright Notice✓ Modification× Warranty✓ Distribution✓ Private UseContributeAll contributions from the open-source community, individuals, and partners are welcomed. Our achievement is a result of your active participation.Contributing guidelinesCode of conductLEARN.md📝 Contact MeIf you want to contact me, you can
reach me atJadhavparth99@gmail.comConnect with me on
Package: tkdev4
tkdev4tkinter高级工具包，实现了许多高级功能，我会持续更新的。😁😁😁
tkinterDev的4.0版本。关于文档的更多内容请查看我的主页关于超详细文档请查看tkinterDev Docs依赖问题这个库拥有许多好用的功能，但是很多功能的代价就是需要依赖库，如果想要体验到完整内容就可以使用pip下载以下所有的库。pywin32实现诸多高级功能需要的win32mica实现云母高级特效需要的BlurWindow实现亚克力高级特效需要的darkdetect用于检测是否是深色主题或是浅色主题Deprecated用于标记一些废弃的组件tkcap用于截取窗口图片plyer用于高级功能pipinstallpywin32pipinstallwin32micapipinstallBlurWindowpipinstalldarkdetectpipinstalltkcappipinstallDeprecatedpipinstallplyer版本信息4.0.0b0
测试发布4.0.0b1
tkdev库更名为tkdev44.0.b2
修复导入错误4.0.0
补充一些注释4.0.1
修复bug4.0.2
清理4.2.0
常量补充，添加dwm设置圆角功能。4.2.1
修复错误4.2.2
更新功能4.2.3
修复4.2.4
可以使用dwm_set_window_attribute_caption_color设置标题栏颜色。4.2.5
补充4.2.6
可以使用DevManage的get_rgb和get_hex获取到bgr。4.2.7
Bug维护
Package: tkdialog-wrapper
tkdialog-wrapperA wrapper library to use tkinter dialogs easily.Usagepip install tkdialog-wrapperimporttkdialog# make open dialogfilename=tkdialog.open_dialog()# Extensions can be assigned.## for numpy savez filesdat=np.load(tkdialog.open_dialog('.npz'))## for csv filesdf=pd.read_csv(tkdialog.open_dialog('.csv'))# make saveas dialogfilename=tkdialog.open_dialog(ext='pkl')# open a directory selectordirname=tkdialog.open_dir_dialog()# change current working directory with a selector dialogtkdialog.chdir_with_dialog()# open a pickled file (*.pkl) with a dialogobj=tkdialog.load_pickle_with_dialog()# open a pickled file (*.dat) with a dialogobj=tkdialog.load_pickle_with_dialog(ext='.dat')# pickle an object with a dialogdat={'x':100,'y':'01234'}tkdialog.dump_pickle_with_dialog(dat)Change log[2.1.0]add functions:chdir_with_dialog,open_dir_dialog[2.0.0]breaking changes:supported python version >= 3.5argument of all functionsadd docstringadd typehint[1.x]
Package: tkdm
tkdmkdm9's toolkit of miscellaneous goodies. MPL2 license.tkdm autogalleryAutomatically generate an HTML lightbox + gallery from a directory of images.$ tree images
images/
    a/
        img1.jpg
        img2.jpg
    b/
        img3.jpg
        img4.jpg
$ tkdm autogallery -i ./images -o ./webgallery/ -t 8tkdm genautoindexAutomatically generate an index.html like Apache's autoindex, or caddy'sfile_server browse, only for static sites.$ tkdm genautoindex
Package: tkdocs
Search for official documents of the Dutch Lower House (Tweede Kamer) and extract relevant data.Note that this is work in progress. The package may not work properly. Currently only queries for motions (moties) and amendments (amendementen) are supported.Installationpip install tkdocsSimple examplefromtkdocsimportquery_tkdata={'query':'referentiewaarden,minimumloon','fromdate':'2017-03-15','todate':'2023-01-01','operator':'and','doc_type':'motie','dir_results':'../data/wml','download_files':True}query_tk(**data)This will search for motions with search queryreferentiewaarden AND minimumloon, between 15 March 2017 and 1 January 2023.Results will be stored as an excel file containing data including date, title, who sponsored the motion, and how parties voted (../data/wml/results.xlsx; make suredir_resultspoints to a location where the results can be stored). Sincedownload_fileswas set toTrue, the pdf’s containing the motion text will be downloaded as well, and stored in../data/wml/files.Als long as you don’t changedir_results, results will be merged if you do multiple queries.For all options, seehelp(query_tk).
Package: tkDocViewer
tkDocVieweris an inefficient, yet practical, Tkinter widget for displaying file previews.It supports a variety of document and image formats; see below for the complete list. Support for new formats can be added through a modular backend system.Both Python 2 and 3 are supported, on Windows and Unix platforms.Development StatustkDocViewer is deprecated. If PDF support is important to your project, please use a better toolkit than Tk.I created tkDocViewer to fill a particular need using the tools I had available at the time. It does the job, but there are better alternatives offering greater accessibility, lower resource consumption, and broader file format support. If your project is open-source I recommend you check outPoppler, which is actively maintained and provides bindings for several popular languages and toolkits.UsagetkDocViewer consists of a single module,tkdocviewer(note the module name is lowercase), which exports a single class,DocViewer.A brief example program:#!/usr/bin/env python3fromtkinterimport*fromtkdocviewerimport*# Create a root windowroot=Tk()# Create a DocViewer widgetv=DocViewer(root)v.pack(side="top",expand=1,fill="both")# Display some documentv.display_file("example.pdf")# Start Tk's event looproot.mainloop()For detailed documentation, trypython3 -m pydoc tkdocviewer.Supported FormatsNote: Most file formats require third-party modules or external applications to be present at runtime. tkDocViewer will still work without them, but file format support will be limited by what's available on your system.Document FormatsFormatExtensionsRequirementsNotesPDF.pdfGhostscriptPlain text.txtnonePostscript.psGhostscriptXPS.xpsGhostscript,GhostXPSOpenXPS has not been tested.Image FormatsFormatExtensionsRequirementsNotesBitmap image.bmp,.pcxPillowGIF.gifPillowAnimations are displayed as individual frames.JPEG.jpe,.jpg,.jpegPillowPNG.pngPillowNetpbm.pbm,.pgm,.pnm,.ppmPillowTarga.tgaPillowTIFF.tif,.tiffPillowSupports multi-page documents.Windows icon.icoPillowX bitmap.xbmPillow
Package: tkdragfiles
Easy Drag Files and Drop to TkinterOnly for windowsInstallationpip3installtkdragfiles
pip3installasync_tkinter_loop#if u need asyncioEasy to use#for normal tkimporttkinterastkfromtkdragfilesimportstart_dragfiles_eventroot=tk.Tk()root.geometry("600x200")lb=tk.Listbox(root,height=500,width=500,selectmode=tk.SINGLE)lb.pack()defcallback(file_paths):forfile_pathinfile_paths:lb.insert("end",file_path)start_dragfiles_event(root,callback)root.mainloop()#for asyncio tkimporttkinterastkfromtkdragfilesimportstart_dragfiles_eventroot=tk.Tk()root.title("Drags file to me")root.geometry("600x200")lb=tk.Listbox(root,height=500,width=500,selectmode=tk.SINGLE)lb.pack()defcallback(file_paths):forfile_pathinfile_paths:lb.insert("end",file_path)start_dragfiles_event(root,callback)fromasync_tkinter_loopimportasync_handler,async_mainloop,get_event_loop,main_looploop=get_event_loop()loop.run_until_complete(main_loop(root))References