Saravanan666/pypi-org huggingface dataset:
Package: tkgtools
Introductiontkgtools is a library which is used as a base for 3GPP security architecture.tkg is stands for 3GPP Key Generator.Only f1, f2, f3, f4, f5, f1* and f5* are supported in this library.tkgtools is written on python 3.6.5, python 2 is not supported.AuthorGeorge Zhao who is working for Nokia in 2010-2012, 2014-2019.maito:georgezhao_1980@163.comHow to get itpip install tkgtoolsFunctionsf1(key, rand, sqn, amf, op, mac_a, opc = [])key(list of int), length 16rand(list of int), length 16sqn(list of int), length 6amf(list of int), length 2op(list of int), length 16mac_a(list of int), length 8opc(list of int), length 6, it is an optional parameter, if opc is set, f1 function will never use op parameter, and use opc to instead.mac_a is used as a return value.f2345(key, rand, op, res, ck, ik , ak, opc = [])key(list of int), length 16rand(list of int), length 16op(list of int), length 16res(list of int), length 8ck(list of int), length 16ik(list of int), length 16ak(list of int), length 6opc(list of int), length 6, it is an optional parameter, if opc is set, f2345 function will never use op parameter, and use opc to instead.res, ck, ik, and ak are used as return values.f1star(key, rand, sqn, amf, op, mac_s, opc = [])key(list of int), length 16rand(list of int), length 16sqn(list of int), length 6amf(list of int), length 2mac_s(list of int), length 8opc(list of int), length 6, it is an optional parameter, if opc is set, f1star function will never use op parameter, and use opc to instead.mac_s is used as a return value.f5star(key, rand, op, ak, opc = [])key(list of int), length 16rand(list of int), length 16op(list of int), length 16ak(list of int), length 6opc(list of int), length 6, it is an optional parameter, if opc is set, f5star function will never use op parameter, and use opc to instead.ak is used as return value.All test data could be retrieved in 3GPP 35.207Examplefrom tkgtools import tkgtools

key = [0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11]
op = [0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x10,0x11,0x12,0x13,0x14,0x15,0x16]
rand = [0x16,0x2a,0x9b,0x8c,0x46,0x9a,0xdc,0x1f,0x41,0xcc,0x69,0x73,0xee,0xe5,0x9e,0xaf]
res=[0 for col in range(8)]
ck=[0 for col in range(16)]
ik=[0 for col in range(16)]
ak=[0 for col in range(6)]
tkgtools.f2345(key, rand, op, res, ck, ik, ak)Any problemPlease contactgeorgezhao_1980@163.com
Package: tkhelper
Tkinter HelperA module to display some customized tkinter modules.Getting StartedYou may download this project directly from GitHub, or you may use Python's package manager(pip).PrerequisitesPlease seerequirements.txtfor prerequisites.InstallingUse pip to install this library.pip install tkhelperRunning the testsDoctests and unit tests can be run.Running doctestsUse python doctest.python -m doctest tkhelper\widgets.py tkhelper\progressbars\circular.pyRunning unit testsUnit tests still in development.Example Usageimporttkinterastkfromtkhelper.widgetsimportResizableLabel,ResizableButtonfromtkhelper.progressbars.circularimportTransparentSpinnerBar,SpinnerLoadingBarroot=tk.Tk()circular_bar=TransparentSpinnerBar(root,kind=SpinnerLoadingBar)defstart_bar():circular_bar.start()resizable_button.config(command=stop_bar,text="Click the button to stop the circular loading bar")defstop_bar():circular_bar.stop()resizable_button.config(command=start_bar,text="Click the button to run the circular loading bar")resizable_label=ResizableLabel(root,text="Example resizable label",weight=0.9,resize=True)resizable_label.grid()resizable_button=ResizableButton(root,text="Click the button to run the circular loading bar",weight=0.5,resize=True,command=start_bar)resizable_button.grid()root.geometry("500x500")root.mainloop()Version InfoVersion 1.0.0.AuthorsErdogan Onal-Owner-Erdogan OnalLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: tkhtmlview
tkhtmlviewHTML widgets for tkinterFork oftk_html_widgetsOverviewThis module is a collection of tkinter widgets whose text can be set in HTML format.
A HTML widget isn't a web browser frame, it's only a simple and lightweight HTML parser that formats the tags used by the tkinter Text base class.
The widgets behaviour is similar to the PyQt5 text widgets (see thePyQt5 HTML markup subset).Installationpip install tkhtmlviewRequirementsPython 3.4 or laterwith tcl/tk supportPillow 5.3.0requestsExampleimporttkinterastkfromtkhtmlviewimportHTMLLabelroot=tk.Tk()html_label=HTMLLabel(root,html='<h1 style="color: red; text-align: center"> Hello World </H1>')html_label.pack(fill="both",expand=True)html_label.fit_height()root.mainloop()You can also save html in a separate .html file and then useRenderHTMLto render html for widgets.index.html<!DOCTYPE html><html><body><h1>Orange is so Orange</h1><imgsrc="https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg"/><p>The orange is the fruit of various citrus species in the family Rutaceae;
        it primarily refers to Citrus × sinensis, which is also called sweet
        orange, to distinguish it from the related Citrus × aurantium, referred to
        as bitter orange.</p></body></html>demo.pyimporttkinterastkfromtkhtmlviewimportHTMLText,RenderHTMLroot=tk.Tk()html_label=HTMLText(root,html=RenderHTML('index.html'))html_label.pack(fill="both",expand=True)html_label.fit_height()root.mainloop()DocumentationClassesAll widget classes inherits from the tkinter.Text() base class.class HTMLScrolledText(tkinter.Text)Text-box widget with vertical scrollbarclass HTMLText(tkinter.Text)Text-box widget without vertical scrollbarclass HTMLLabel(tkinter.Text)Text-box widget with label appearanceclass RenderHTMLRenderHTML class will render HTML from .html file for the widgets.Methodsdef set_html(self, html, strip=True)Description:Sets the text in HTML format.>Args:html: input HTML stringstrip: if True (default) handles spaces in HTML-like styledef fit_height(self)Description:Fit widget height in order to display all wrapped linesHTML supportOnly a subset of the whole HTML tags and attributes are supported (see table below).
Where is possibile, I hope to add more HTML support in the next releases.TagsAttributesNotesastyle, hrefbstylebrcodestyledivstyleemstyleh1styleh2styleh3styleh4styleh5styleh6styleistyleimgsrc, width, heightexperimental support for remote imageslistylemarkstyleolstyle, type1, a, A list types onlypstyleprestylespanstylestrongstyleustyleulstylebullet glyphs onlytable,tr,th,td-basic supportNote: All styles are not supported;
align with justify is not supported; it falls back to left alignLicense
Package: tk-html-widgets
tk_html_widgetsHTML widgets for tkinterOverviewThis module is a collection of tkinter widgets whose text can be set in HTML format.
A HTML widget isn't a web browser frame, it's only a simple and lightweight HTML parser that formats the tags used by the tkinter Text base class.
The widgets behaviour is similar to the PyQt5 text widgets (see thePyQt5 HTML markup subset).Installationpip install tk_html_widgetsRequirementsPython 3.4 or laterwith tcl/tk supportPillow 5.3.0Exampleimporttkinterastkfromtk_html_widgetsimportHTMLLabelroot=tk.Tk()html_label=HTMLLabel(root,html='<h1 style="color: red; text-align: center"> Hello World </H1>')html_label.pack(fill="both",expand=True)html_label.fit_height()root.mainloop()DocumentationClasses:All widget classes inherits from the tkinter.Text() base class.class HTMLScrolledText(tkinter.Text)Text-box widget with vertical scrollbarclass HTMLText(tkinter.Text)Text-box widget without vertical scrollbarclass HTMLLabel(tkinter.Text)Text-box widget with label appereanceMethods:def set_html(self, html, strip=True):Description:Sets the text in HTML format.Args:html: input HTML stringstrip: if True (default) handles spaces in HTML-like styledef fit_height(self):Description:Fit widget height in order to display all wrapped linesHTML support:Only a subset of the whole HTML tags and attributes are supported (see table below).
Where is possibile, I hope to add more HTML support in the next releases.TagsAttributesNotesastyle, hrefbstylebrcodestyledivstyleemstyleh1styleh2styleh3styleh4styleh5styleh6styleistyleimgsrc, width, heightlocal images onlylistylemarkstyleolstyle, type1, a, A list types onlypstyleprestylespanstylestrongstyleustyleulstylebullet glyphs onlyComparison chartIn order to check the appearance of the HTML text displayed by the tk_html_widgets, I made some HTML templates and I compared the text displayed by the HTMLText widget with the text displayed by Firefox and the PyQt5 QTextBrowser widget.
See details and templates HTML code in theexamples folder.Tags template comparison:Firefoxtk_html_widgets.HTMLTextPyQt5.QtWidgets.QTextBrowserStyles template comparison:Firefoxtk_html_widgets.HTMLTextPyQt5.QtWidgets.QTextBrowserImages template comparison:Firefoxtk_html_widgets.HTMLTextPyQt5.QtWidgets.QTextBrowserAcknowledgementsThanks to my mentor, valued collegue and friendJayZar21.
Package: tk-image-cropper
tk-image-cropperA simple program that uses a Tkinter GUI to display and visually crop an image to the desired width and height. Simply callimage_cropper.run_image_cropper(img_path: pathlib.Path, desired_width: int, desired_height: int, out: pathlib.Path)to crop the image atimg_pathto (desired_width,desired_height) and write the resulting output file toout.
Package: tkimg
# TkImg for Python[![Build Status](https://travis-ci.com/RedFantom/python-tkimg.svg?branch=master)](https://travis-ci.org/RedFantom/python-tkimg)[![Build status](https://ci.appveyor.com/api/projects/status/49k2xqvu7x52ul36?svg=true)](https://ci.appveyor.com/project/RedFantom/python-tkimg)[![codecov](https://codecov.io/gh/RedFantom/python-tkimg/branch/master/graph/badge.svg)](https://codecov.io/gh/RedFantom/python-tkimg)[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)[![PyPI version](https://badge.fury.io/py/tkimg.svg)](https://pypi.python.org/pypi/tkimg)Python wrapper around TkImg to support more image formats in Tkinter## UsageThis wrapper uses the binary distributions of `TkImg` (because compilingthem as C-extensions at installation time would be quite difficult onthe different platforms) and loads them dynamically into aTcl-interpreter instance (belonging to a `Tk` instance) by evaluatinga `pkgIndex.tcl` file.After the evaluation of this file, the built-in `PhotoImage` class canbe used to open files of all the file types supported by `TkImg`,including PNG and TIFF.```pythonimport tkinter as tkfrom tkimg import load_tkimgwindow = tk.Tk()load_tkimg(window)tk.PhotoImage('path_to_file.png')```## Licensepython-tkimg: A Python wrapper to load TkImg into a Tcl-interpreterCopyright (C) 2018 RedFantomThis program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program.  If not, see <http://www.gnu.org/licenses/>.The `tkimg` project and the files that belong to it, located in`/binaries`, are under a separate license, described in`binaries/LICENSE`. This license allows distribution under anotherlicense, and is thus GNU GPLv3 compatible, as long as the `LICENSE` fileis included.
Package: tkini
TkIniTkIni é uma biblioteca construída em cima do Tkinter para simplificar a criação de GUIs em Python. Ele permite a leitura de estilos e configurações de widgets a partir de arquivos de texto e oferece uma interface para definir eventos personalizados e manipuladores de eventos para widgets.FuncionalidadesLeitura de estilos de widgets a partir de um arquivo de configuração (styles.ini).Leitura de configurações de widgets a partir de um arquivo de configuração (widgets.ini).Definição de eventos personalizados para widgets.Definição de manipuladores de eventos para widgets.Atualização dinâmica dos estilos e configurações dos widgets.Como UsarInstale a biblioteca via pip:pipinstalltkiniImporte a biblioteca em seu código:fromtkiniimportWindowCrie uma instância da classe Window e utilize seus métodos para configurar a interface gráfica:window=Window()window.title("Minha Aplicação")window.geometry("400x250")window.use_styles_file("styles.ini")window.use_widgets_file("widgets.ini")window.mainloop()Como ContribuirSe você quiser contribuir com este projeto, siga estas etapas:Crie um fork este repositório.Crie um branch para a sua feature (git checkout -b feature/MinhaFeature).Faça commit das suas mudanças (git commit -am 'Adiciona nova feature').Faça push para o branch (git push origin feature/MinhaFeature).Crie um novo Pull Request.AutorMarcuth (@1marcuth)LicençaEste projeto está licenciado sob a Licença MIT.
Package: tkinterAsync
TkinterAsyncRunTkinter Tcl/TkPython module with own loop code at the same time.For more infoGithub - https://github.com/ZhengLinLei/tkinterAsyncIssuesGithub - IssuesExample code:importsysimportos.pathsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),os.path.pardir)))fromsrc.tkinterAsyncimportTkinter# TKINTER GUIdefgui(root,tk,ttk):root.title('Title example')root.geometry('300x300')root.resizable(0,0)button=tk.Button(root,text='Alert',padx=25,cursor='hand2',command=lambda:print('Hello World!'))button.place(relx=0.5,rely=0.5,anchor=tk.CENTER)# CREATE VARIABLEroot=Tkinter(gui)# PASS THE FUNCTION OR METHOD CLASS# AFTER RUNNING TKINTER, THE PYTHON MUST RUN THE CODE BELOW AT THE SAME TIMEprint('Running this after Tkinter')foriinrange(1000):print(i)Zheng Lin LeiGithub- 2021
Package: tkinter-async-execute
Tkinter-Async-Execute is a small library, that provides a way to run anasyncioevent loop alongside Tkinter in
a separate thread.It provides a way to execute methods of tkinter widgets from inside async functions and ability to call async functions
from functions (commands / events) running in tkinter’s thread. The former can be called from any thread (or async function)
and the latter only from functions (commands / events) in tkinter’s thread.To show progress of an async function, submitted from tkinter, an async execution window widget is available,
which will display any text printed with theprint()function (or any stdout write requests).Installationpipinstalltkinter-async-executeDocumentationAll documentation is available onhttps://tkinter-async-execute.readthedocs.io/.Examplefromtkinterimportttkimporttkinterastkimportasyncioimporttk_async_executeastaeasyncdefasync_function():# Call tkinter widget methods.print("Disabling button")tae.tk_execute(bnt.config,state="disabled")# Thread safe exectionawaitasyncio.sleep(5)print("Enabling button")tae.tk_execute(bnt.config,state="normal")awaitasyncio.sleep(2)# Change tkinter textprint("Renaming button")tae.tk_execute(bnt.config,text="Example 2")awaitasyncio.sleep(2)defbutton_clicked():# Call async functiontae.async_execute(async_function(),wait=True,visible=True,pop_up=True,callback=None,master=root)# Close applicationroot.quit()if__name__=="__main__":root=tk.Tk()bnt=ttk.Button(root,text="Click me",command=button_clicked,width=20)bnt.pack()tae.start()# Starts the asyncio event loop in a different thread.root.mainloop()# Main Tkinter looptae.stop()# Stops the event loop and closes it.
Package: tkinter-customwindow
tkinter-titlebar在Windows平台上自定义窗口，代码大部分借鉴自CustomTkinterTitlebar项目，采用ctypes与win32兼并使用。使用fromtkcustomwindowimportCustomWindowfromtkinterimportTk,Frameroot=Tk()frame=Frame(root,width=100,height=25,background="grey")frame.pack(fill="x",side="top")customwindow=CustomWindow(root)customwindow.bind_drag(frame)root.mainloop()
Package: tkinterDev
tkinterDevtkinter高级工具包，实现了许多高级功能，我会持续更新的。😁😁😁关于文档的更多内容请查看我的主页关于超详细文档请查看tkinterDev Docs依赖问题这个库拥有许多好用的功能，但是很多功能的代价就是需要依赖库，如果想要体验到完整内容就可以使用pip下载以下所有的库。pywin32实现诸多高级功能需要的win32mica实现云母高级特效需要的BlurWindow实现亚克力高级特效需要的darkdetect用于检测是否是深色主题或是浅色主题Deprecated用于标记一些废弃的组件tkcap用于截取窗口图片pipinstallpywin32pipinstallwin32micapipinstallBlurWindowpipinstalldarkdetectpipinstalltkcappipinstallDeprecatedpipinstallplyer版本信息4.0.0b0
测试发布4.0.0b1
tkdev库更名为tkdev44.0.b2
修复导入错误4.0.0
补充一些注释
Package: tkinterDnD
# tkinterDnD
Tkinter Drag-N-Drop module.
Import this module with`python import tkinterDnD as dnd `To make a widget draggable, do`python dnd.make_draggable(widget) `To make a draggable widget inside a frame, do`python dnd.make_draggable(frame) dnd.make_draggable_component(widget) `Here’s an example of this module being put to use.`python import tkinter import tkinterDnD as dnd tk = tkinter.Tk()tk.title("tkinterDnD")frame = tkinter.Frame(tk, bd=4, height=64, width=64,bg="red")frame.place(x=0,y=0) dnd.make_draggable(frame) label = tkinter.Label(frame,text="Hello",bg="red",wraplength=64, justify=tkinter.CENTER)label.config(highlightbackground="black")label.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) dnd.make_draggable_component(label) frame = tkinter.Frame(tk, bd=4, height=64, width=64,bg="green")frame.place(x=0,y=0) dnd.make_draggable(frame) label = tkinter.Label(frame,text="World",bg="green",wraplength=64, justify=tkinter.CENTER)label.config(highlightbackground="black")label.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) dnd.make_draggable_component(label) tk.mainloop() `# Side note: The module has a default snap grid of 16x16 units.
Package: tkinterdnd2
forkthis is fork oftkinterdnd2which is a python wrapper fortkdnd.this repo forked and edited to be published to pypi so one could simply install this package
withpip install tkinterdnd2.installpython -m pip install tkinterdnd2usagesee any of thedemosfor usage examples.tkinterdnd2Tkinter native drag and drop support for windows, unix and Mac OSX.What is TkInterDnD2TkinterDnD2is a python wrapper for George Petasis' tkDnD Tk extension version 2.It is a domain public project.What is TkDnD2tkDnD2is a tcl/Tk extension adding native drag and drop support.What this repository is aboutIt package TkinterDnD2 and tkdnd2 into a standard python module.When the extension is imported in python its location will be automatically added to the Tk search path.In this project we use the pre-compiled release
fromhttps://github.com/petasis/tkdnd/releases/tag/tkdnd-release-test-v2.9.2and copy them in tkinterdnd2/tkdnd.InstallationNothing fancy:python setup.py installYou can then import tkinterdnd2 in your project. See examples in folder "demos".pyinstallerIf you want to use pyinstaller, you should use the hook-tkinterdnd2.py file included. Copy it in the base directory of
your project, then:pyinstaller -F -w myproject/myproject.py --additional-hooks-dir=.
Package: tkinter-dndr
tkinter_dndrA package that provides tkinter (in python) with support for drag/drop and widget resizing of widgets directly on a GUI windowPLEASE READ THIS FILE TO FULLY UNDERSTAND AND USE THIS PACKAGE WITHOUT ISSUES.----- GENERAL OVERVIEW OF THE PACKAGE (A tkinter Drag/Drop and Resize Package) -----tkinter_DnDR is short form for tkinter_Drag/Drop, ResizeThis package is one that provides drag/drop and widget resizing support to tkinter widget. What this means is that you (as programmer) can make your widget move to any position on the GUI window (drag/drop). It additionally means that you can resize your widget directly on the GUI window.For widget resizing, you can resize your widget in any direction you can think of (even diagonally), whether:UP (or NORTH) directionDOWN(or SOUTH) directionRIGHT (or EAST) directionLEFT (or WEST) directionUP-RIGHT (or NORTH-EAST) directionUP-LEFT (or NORTH-WEST) directionDOWN-RIGHT (or SOUTH-EAST) directionDOWN-LEFT (or SOUTH-WEST) direction----- HOW TO USE THIS PACKAGE -----First import the tkinter_dndr module.
The tkinter_dndr module contains a class called DragDropResizeWidget.Create an instance/object of the DragDropResizeWidget class. This class receives your widget as a positional argument.EXAMPLE:instance = DragDropResizeWidget(w), where w is the widget you want to give drag/drop or resize supportNOTE: Any instance of the DragDropResizeWidget class, contains three(3) methods:a)instance.make_draggable()# Provides only drag/drop support to widgetb)instance.make_resizable()# Provides only resizing support to widgetc)intance.make_draggable_and_resizable()# Provides both drag/drop and resizing support to widgetCall any of the above methods (a,b or c) as you desiree.g:instance.make_draggable()NOTE: I HAVE INCLUDED Atest_dndr.pyfile in package directory. Run/Open this file to see and understand how this package works.----- NOTE ------- To use the.make_draggable()method, your widget MUST use the PACK or PLACE layout managers (either.pack()or.place())-- To use the.make_resizable()method, your widget MUST ONLY use the PLACE layout manager-- To use the.make_draggable_and_resizable()method, your widget MUST ONLY use the PLACE layout manager-- If using the.make_resizable()or.make_draggable_and_resizable_method(), you MUST define x,y,width and height in .place() for your widgete.g:widget.place(x=5, y=10, width=10, height=12)I will endeavour to make SUBSEQUENT VERSIONS of this package work well with any layout manager (whether.grid(),.pack()or.place())----- A USAGE EXAMPLE OF THIS PACKAGE -----See thetest_dndr.pyfile in the package directory for a usage example.----- AUTHOR OUT 🙂 -----Feel free to reach me ongadawesome@gmail.comif you have anything you like urgently patched or added.If your software/project relies on this package fully supporting all layout managers or any other desired support/addition, I am only an email away.HAPPY TO HELP 😄IMPROVEMENTS/SUGGESTIONS are welcome 😉
Package: tkinter-expansion
Tkinter expansionPython framework that is heavily inspired by JavaFX and makes creating apps easierBig and relax update!In this update tkinter_expansion received bug and performance fixes!Bugs killed:Loading widgets other than 1st widget caused removing widget data when selecting widgetError when widget didn't support specific data, for exampleactivebackgroundFeatures added:Now binding help is much bettertkinter_expansion.bind_help()Required parameters: panel - widget where show help, text - help message, timeout - show help message after set time in msBinding widget to Designer is much comfortable withdesigner.bind()this method requires widget variable what you want to bindIf you rather want to bind multiple widgets at one you can also usedesigner.bind_all()this method require list that contains widgets that you want to bind to DesignerLoading theme is much more comfortable and extreme line saving
when loading theme withdesigner.load()will require dictionary containing:theme_widget_name: widget_varortheme_widget_name: [widget_var1, widget_var2]to apply same widget theme to different widgetsRecommendations:If you want to make life easier addname="widget_name"to widget to have easier theme loadingFor more information please visitdocumentation website
Package: tkinter-files-folders
Some tkinter functions for selecting files/folders# Tested with:# Python 3.9.13# Windows 10pipinstalltkinter-files-foldersfromtkinter_files_foldersimport(get_multiple_files_with_tkinter,get_file_with_tkinter,get_save_file_with_tkinter,get_existing_directory_with_tkinter,get_not_existing_directory_with_tkinter,)get_multiple_files_with_tkinter(filetypes=((".txt","*.txt"),(".png","*.png")))get_file_with_tkinter(filetypes=((".txt","*.txt"),(".png","*.png")))get_save_file_with_tkinter(filetypes=((".txt","*.txt"),(".png","*.png")))get_existing_directory_with_tkinter()get_not_existing_directory_with_tkinter()