Saravanan666/pypi-org huggingface dataset:
Package: tkscrollutil
tkscrollutil文档主页ScrolllArea可以快速地为水平滚动、垂直滚动组件设置滚动条属性autohidescrollbars设置组件是否自动隐藏滚动条。布尔数值。默认False。也就是说，当你把鼠标指针放到滚动条上时，滚动条才会显示。lockinterval设置组件滚动条地锁定间隔。整数数值。默认300.respectheader仅当将嵌入到组件内地tablelist版本为6.5及以上版本时才能使用，后续等开发出tablelist的扩展库时补充respecttitlecolumns仅当将嵌入到组件内地tablelist版本为6.5及以上版本时才能使用，后续等开发出tablelist的扩展库时补充xscrollbarmode设置水平滚动条的模式。可选值为staticdynamicnone。默认none。static为常驻滚动条；dynamic为自动滚动条；none为没有滚动条yscrollbarmode设置垂直滚动条的模式。可选值为staticdynamicnone。默认static。static为常驻滚动条；dynamic为自动滚动条；none为没有滚动条方法setwidget设置具有滚动条属性的组件，使组件快速设置滚动条。示例fromtkinterimportTk,ListboxfromtkscrollutilimportScrollAreaWindow=Tk()Area=ScrollArea(Window)List=Listbox(Area)forIteminrange(50):List.insert(Item+1,Item+1)Area.setwidget(List)Area.pack(fill="both",expand="yes")Window.mainloop()ttkScrollArea见上方。与ScrollArea不同的是，ttkScrollArea具有ttk组件的属性，并且ScrollArea和ttkScrollArea不能同时使用。示例fromtkinterimportTk,ListboxfromtkscrollutilimportttkScrollAreaWindow=Tk()Area=ttkScrollArea(Window)List=Listbox(Area)forIteminrange(50):List.insert(Item+1,Item+1)Area.setwidget(List)Area.pack(fill="both",expand="yes")Window.mainloop()ScrollSync同步滚动条，当其中一个滚动时，另一个也会跟随着移动起来。方法setwidgets设置同步滚动的组件。需输入列表，如 [widget1, widget2] 。widgets获取同步滚动的组件。示例fromtkinterimportTk,Listbox,FramefromtkscrollutilimportScrollArea,ScrollSyncWindow=Tk()Frame=Frame()Area=ScrollArea(Frame,yscrollbarmode="static")Sync=ScrollSync(Area)Area.setwidget(Sync)Area.pack(fill="y",side="right")List1=Listbox()List1.pack(fill="both",side="left",expand="yes")List2=Listbox()List2.pack(fill="both",side="right",expand="yes")forIteminrange(300):List1.insert(Item,Item)List2.insert(Item,Item)Sync.setwidgets([List1,List2])Frame.pack(fill="both",expand="yes")Window.mainloop()ttkScrollSync见上方。与ScrollSync不同的是，ttkScrollSync具有ttk组件的属性，并且ScrollSync和ttkScrollSync不能同时使用。示例fromtkinterimportTk,Listbox,FramefromtkscrollutilimportttkScrollArea,ttkScrollSyncWindow=Tk()Frame=Frame()Area=ttkScrollArea(Frame,yscrollbarmode="static")Sync=ttkScrollSync(Area)Area.setwidget(Sync)Area.pack(fill="y",side="right")List1=Listbox()List1.pack(fill="both",side="left",expand="yes")List2=Listbox()List2.pack(fill="both",side="right",expand="yes")forIteminrange(300):List1.insert(Item,Item)List2.insert(Item,Item)Sync.setwidgets([List1,List2])Frame.pack(fill="both",expand="yes")Window.mainloop()ttkScrolledNoteBookscrollutil本身不提供ScrolledNoteBook，只有ttk能够提供。fromtkinterimportTk,FramefromtkscrollutilimportttkScrolledNoteBook,addclosetabWindow=Tk()NoteBook=ttkScrolledNoteBook(Window)addclosetab("TNotebook")NoteBook.add(Frame(NoteBook),text="Hello World")NoteBook.pack(fill="both",expand="yes")Window.mainloop()
Package: tkseem
tkseem (تقسيم)is a tokenization library that encapsulates different approaches for tokenization and preprocessing of Arabic text.DocumentationPlease visitreadthedocsfor the full documentation.Installationpip install tkseemUsageTokenizationimporttkseemastktokenizer=tk.WordTokenizer()tokenizer.train('samples/data.txt')tokenizer.tokenize("السلام عليكم")tokenizer.encode("السلام عليكم")tokenizer.decode([536,829])Cachingtokenizer.tokenize(open('data/raw/train.txt').read(),use_cache=True)Save and Loadimporttkseemastktokenizer=tk.WordTokenizer()tokenizer.train('samples/data.txt')# save the modeltokenizer.save_model('vocab.pl')# load the modeltokenizer=tk.WordTokenizer()tokenizer.load_model('vocab.pl')Model Agnosticimporttkseemastkimporttimeimportseabornassnsimportpandasaspddefcalc_time(fun):start_time=time.time()fun().train()returntime.time()-start_timerunning_times={}running_times['Word']=calc_time(tk.WordTokenizer)running_times['SP']=calc_time(tk.SentencePieceTokenizer)running_times['Random']=calc_time(tk.RandomTokenizer)running_times['Disjoint']=calc_time(tk.DisjointLetterTokenizer)running_times['Char']=calc_time(tk.CharacterTokenizer)NotebooksWe show how to usetkseemto train some nlp models.NameDescriptionNotebookDemoExplain the syntax of all tokenizers.Sentiment ClassificationWordTokenizer for processing sentences and then train a classifier for sentiment classification.Meter ClassificationCharacterTokenizer for meter classification using bidirectional GRUs.TranslationSeq-to-seq model with attention.Citation@misc{tkseem2020,
  author = {Zaid Alyafeai and Maged Saeed},
  title = {tkseem: A Tokenization Library for Arabic.},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/ARBML/tkseem}}
}ContributionThis is an open source project where we encourage contributions from the community.LicenseMITlicense.
Package: tksel
tkselTable of ContentsInstallationLicenseDescriptionUsageExampleInstallationpip install tkselLicensetkselis distributed under the terms of theAGPLv3 license.Descriptiontkselis a Python package that provides tool to recover videos from TikTok.
It is intended to be used on the csvs generated byMinetbut will work on any csv with the right columns:id(the id of the video), aliasvideo_idauthor_unique_id(the id of the author), aliasauthor_idUsagetkselinput.csvoutput_folder[--no-headless][--no-verify][--no-skip]input.csvis the csv generated by minet or any csv with the right columnsoutput_folderis the folder where the videos will be downloaded, it will be created if it doesn't exist, the input csv will also be copied there--no-headlessis an optional argument to display the browser while it is downloading the videos--no-verifyis an optional argument to disable the verification of the requests.get()Exampletkseltemp.csvvideos-collecte1--no-headless--no-verify--no-skip
Package: tks-essentials
tks-essentialsA library with essentials needed in every backend python app. e.g. logging, local db connection, filtering, formatting etc.SponsorsFreya Alpha,
The Kára System,
Spark & Hale Robotic IndustriesGeneralRun and compiled for Python 3.9.13.
Expected to run for Python 3+DevelopmentTestingrun tests withpytest -s -vvto see all the details.Installation as Consuming DeveloperSimply run:pip install tks-essentialsImport in modules without the dash (e.g.):from tksessentials.globallogger import GlobalLoggerSetup as ContributorCreate the virtul environment:py -m venv .venvStart the Environment:./.venv/Scripts/activate(or allow VS Code to start it). Usedeactivateto stop it.All the required libraries must be listed in requirements.txt and installed bypython -m pip install -r .\requirements.txtFor Dev usepython -m pip install -r .\requirements-dev.txtTo cleanup the environment run:pip3 freeze > to-uninstall.txtand thenpip3 uninstall -y -r to-uninstall.txtorpip3 install pip-autoremoveBuild LibraryPrerequisite: make sure that you give your Operating System user the right to modify files in the python directory. The directory where pyhton is installed.
Usepython setup.py bdist_wheelto create the dist, build and .eggs folder.Reference from a different projectIn order to use your own version of the project - to maybe contribute to the library - simply clone the code from github into new directory. Then add the path of that new directory to the requirements.txt file of your project. Then change in tks-essentials whatever you recommend to improve. Don't forget the Open-Closed Principle: extend only (unless it requires a breaking change)Releasing a new versionThis is entirely executed with Github Actions.
Package: tkshapes
Tkinter Canvas ShapesNote:This is a Python 3.6+ module.The tkshapes module adds a GCanvas widget which can contain user-configurable shapes.
The GCanvas widget supports the standard Tk canvas shapes, as well as some others
useful in diagrams. (Not all implemented yet.)GObjects can be constructed from GItemsGObjects are displayed on the GCanvasGObjects can be dragged around individually, or selected and dragged togetherGObjects can have GNodesGNodes can be connected by a GConnection (visualized by a GWire)ControlsThe GCanvas Keyboard and Mouse controls are as follows:Control + MouseClickHold-and-Drag or Two-finger swipe to Pan the canvasControl + MouseWheel or Control + Two-finger Vertical swipe to Zoom In/OutClick-Drag a single shape to move it around on the canvasCommand + Click to toggle selection of a single shapeClick-Drag on the canvas to mark out a Selection BoxSelected shapes can highlight themselves if configured to do so (default)Click-Drag one of the selected shapes to move them all togetherClick anywhere on the canvas to de-select all shapesCommand + Click individual shapes to add/remove shapes from the selected set (toggle)To make a connection between two "Connectable" shapes:Click and Hold on an "Output" Node of a shape (such as one of the Logic Gates in the Demo)Begin to Drag and a wire will appearDrag the wire to an "Input" Node of another shape and release to complete the connectionInstallationCreate your Python 3.6+ virtual environmentpython3.6 -m venv envActivate your virtual envsource env/bin/activateInstall tkapp and tkshapes (The demo.py depends on the tkapp module as well.)pip install tkapp tkshapesAlpha - In-DevelopmentThis library is being developed so that I can use it to build a Digital Logic
Simulator app.  I wasn't able to find a Tkinter library that did what I need,
so decided to try and write one from scratch.At this time, the only documentation is this README, the code itself, as well
as a demo.py which shows the basic usage.I'm developing and testingONLYon macOS.Known Issueswhen the Tkinter window is put in full-screen mode using the full-screen
green dot button at the top left of the window, mouse position is incorrectly
calculated.  You'll notice that the calculated mouse position on the GCanvas
is slightly off.  This appears to be a Tkinter bug, but I'm not 100% sure.
Instead of using full-screen mode, you may click Option-GreenDot to maximize
the window to use the full screen without actually entering full-screen mode.FIXED:this issue has been fixed with Python 3.7 releases.  I've tested both
the standard CPython and Anaconda distributions, and this issue is no longer
present.  It appears that "Fullscreen Mode" simply does a window maximize now,
automatically accomplishing the workaround mentioned above.
Package: tksheet
tksheetA python tkinter table widgetHelpVersions 6.x.x ->Documentation WikiVersions 7.x.x ->Documentation WikiChangelogQuestionsIssuesSuggestionsThis library is maintained with the help ofothers. If you would like to contribute please read thishelp section.Changes for versions7+:ALLextra_bindings()event objects have changed, informationhere.The bound function forextra_bindings()with"edit_cell"/"end_edit_cell"no longerrequires a return value and no longer sets the cell to the return value. Usethisinstead.edit_cell_validationhas been removed and replaced with the functionedit_validation(), informationhere.Only Python versions >=3.8are supported.tksheetfile names have been changed.Many other smaller changes, see thechangelogfor more information.FeaturesDisplay and modify tabular dataStores its display data as a Python list of lists, sublists being rowsRuns smoothly even with millions of rows/columnsEdit cells directlyCell values can potentially beany class, the default is any class with a__str__methodDrag and drop columns and rowsMultiple line header and index cellsExpand row heights and column widthsChange fonts and font size (not for individual cells)Change any colors in the sheetCreate an unlimited number of high performance dropdown and check boxesHide rows and/or columnsLeft"w", Center"center"or Right"e"text alignment for any cell/row/column"""Versions 7+ have succinct and easy to read syntax:"""# set datasheet["A1"].data="edited cell A1"# get datacolumn_b=sheet["B"].data# add 2 empty columns and add the change to undo stacksheet.insert_columns(columns=2,idx=4,undo=True)# delete columns 0 and 3 and add the change to undo stacksheet.delete_columns(columns=[0,3],undo=True)light blue themeblack theme
Package: tksidebar
tk_sidebaretkinter widgte to add a sidebare to your apps.How to installpip install tksidebarScreenshotHow to useis simpleimport tkinter as tk
from tksidebar import Sidebook



window =  tk.Tk()
window.geometry('1000x500')

sidebook = Sidebook(window) # you can add some options

frame_1 = tk.Frame(bg='#A75D5D', height=500, width=400)
frame_2 = tk.Frame(bg='#0081B4', height=500, width=400)
frame_3 = tk.Frame(bg='#C780FA', height=500, width=400)
frame_4 = tk.Frame(bg='#FF7B54', height=500, width=400)
frame_5 = tk.Frame(bg='#495579', height=500, width=400)


tabs = [
('split', frame_1, r'img\icons8-cut-24.png', False),
('crop margins', frame_2,r'img\icons8-crop-24.png', False),
('rotate pages', frame_3,r'img\icons8-rotate-24.png', False),
('to images', frame_4,r'img\icons8-picture-24.png', False),
('about', frame_5, r'img\icons8-settings-24.png', True), # this on bottom
]

for name, frame, icon, bottom in tabs:
  sidebook.add(frame, text=name, icon=icon, at_bottom=bottom) # add here any options for pack (fill, expand, padx...)
sidebook.select(0)

sidebook.pack(anchor='nw', fill='both', expand=True)

window.mainloop()noticeyou can change sidebare colors:my_colors = {"accent": 'default', "bg":'#EFF4F8',"hover":'#E8EBF0',"press":'#D6D9DE'}
sidebook = Sidebook(window,colors=my_colors)you can also specific sidebar widthsidebook = Sidebook(window,sidebar_width=260)you can also add header to sidebar.sidebook.add_header(widget, padx=10)
Package: tksplash
The tksplash module can be used to make splash screens for all of your GUIs which you make using tkinterTo use this assing theTksplashclass to a variable:splash = tksplash.Tksplash()and then you can fill in the argumentsit takes 5 arguments where only one is required and other are optionalwindowthe one above is the required valuedestroy_time, font_style,text_colour',font_sizeand the these are the optional valuesNote->thetext_colourcan also be written as#RRGGBBNote->The value oftime_after_which_it_should_destroyshould be entered in millisecond(ms), (1 s = 1000ms)An example using all the arguments:import tksplash
import tkinter

win = tkinter.Tk()
splash = tksplash.Tksplash(win, 3000, "Lucida Grande", "white")
splash.add_splash_text("hello", 500, 500)
win.mainloop()These are some examples on how to use this module :import tksplash
import tkinter

win = tkinter.Tk()
splash = tksplash.Tksplash(win)
splash.add_splash_text("hello", 500, 500)
win.mainloop()theadd_splash_text()takes in exactly 3 argumentstext, width, heighttext--> the text you want to displaywidht--> the width of the windowheight--> the height of the windowAdding an image in the splash screensplash.add_image("some.jpg", 100, 100, 250, 350)Theadd_image()function takes in5argumentsimg, img_x, img_y, place_x, place_ythese are the required values 👆👆img--> the image you want to project on the splash screenimg_x--> the width of the imageimg_y--> the height of the imageplace_x--> the x value where you want to place the imageplace_y--> the y value where you want to place the imageAdding image as well as text useadd_image_text()functionIt takes in these valuestext, width, height, img, img_x, img_y, place_x, place_y,To add a gif useadd_gif()And it takes in 3 argumentsgif,place_x,place_yTo add a gif and text useadd_gif_text()And it takes in 6 argumentstext, width ,height,gif,place_x,place_y
Package: tks-simple-pika
FeaturesLibrary for a simple implementation of a RabbitMQ consumer and producer using the python pika libraryEditor.mdThis library includes the pika library and only the following steps are necessary:call to the generator or consumer class if applicable.
To consumer: (Make a call to the consumer class and override the callback method with the required business logic.)
consumer = TksSimplePikaConsumer('exchange_name')
funcType = type(TksSimplePikaConsumer.callback)
def __callback(self, ch, method, properties, body):
print(" [x] %r %s %s %s" % (body, ch, method, properties))
data = json.loads(body)
notification = Notifications(**data)
notification.raiseNotification()
consumer.callback = __callback.get(consumer,TksSimplePikaConsumer)
consumer.consumer_start()
To generator (message example):
publisher = TksSimplePikaPublisher('notifications', id=1, email='johndoe@email.com', type='email', msg='Test message')
publisher.send()
The following parameters are required::
- id (int)
- type (str)
- msg (str)
Optional parameters:
- email (EmailStr)
- subject (str)
- phone (int)
- description (str)The following environment variables are required (Would be in an .env file):RABBITMQ_HOSTRABBITMQ_PORTRABBITMQ_USERRABBITMQ_PASSWORDRABBITMQ_EXCHANGE_TYPE (funout)
Package: tksss
uchida1512_create-packageこののアプリでは、下記のような tksss コマンドを実装する。引数で受け取った画像のソース情報をもとに画像を取得し、その画像にメッセージ（デフォルトは Thanks SSS ）をのせた画像を生成する。画像ファイルのソース情報はファイルパス、画像 URL、検索キーワードの
　 いずれかを指定し、画像にのせる文字列は --message オプションで変更できる。
Package: tk-steroids
Tk-steroidsTk-steroids contains some useful GUI elements (tkinter/tk widgets)
such as a selection boxes or matplotlib integration
that keep reoccuring in my code elsewhere.Installingpip install tk-steroidsUsagefromtk_steroids.MODULEimportWIDGETelementsListboxTickboxFrameDropdownListTabsButtonsFramematplotlibCanvasPlotterSequenceImshowdialogsTickSelectmenumakerMenuMakerMost of the widgets inherit fromtk.Frameand
usegridpositioning system internally.
There are exceptions to this logic such asMenuMakerthat creates
a menu from a class that is inheriting it (when calling_connect).Example 1The following example addsTickboxFrameon the secondTabpageimporttkinterastkfromtk_steroids.elementsimportTabs,TickboxFrameroot=tk.Tk()my_tabs=Tabs(root,['Page 1','Page 2','Page 3'])my_tabs.grid()boxes=TickboxFrame(my_tabs.tabs[1],['a','b',"c"],['Fancyname A','Fabolous B','Handsome C'])boxes.grid()root.mainloop()Example 2This example shows howCanvasPlottersimplifiesthe matplotlib in Tk routineimporttkinterastkfromtk_steroids.matplotlibimportCanvasPlotterroot=tk.Tk()plotter=CanvasPlotter(root)plotter.grid()# These are normal matplotlib figure and ax, also available# - plotter.figure# - plotter.axfig,ax=plotter.get_figax()ax.plot([0,4,2])# Calls FigureCanvasTkAgg draw-methodplotter.update()root.mainloop()For convinience,CanvasPlotterhas also
its ownplotandimshowmethods.OtherIn these 0.x.y versions, things can change quite a lot
(no guaranteed API stability).
Package: tkstylesheet
Tkinter stylesheet - TkssThis library helps you to set style to tkinter default widget using stylesheet without
much work.Quick Example:fromtkinterimport*fromtkstylesheetimportTkThemeLoader_style="""Tk{background: "#565657"; /*background color of the root widget*/}Label{foreground: "#ebebeb";background: "#565657";}Button{foreground: "#ebebeb";background: "#565657";}"""root=Tk()Label(root,text="label").pack()Button(root,text="Button").pack()theme=TkThemeLoader(root)theme.setStylesheet(_style)# pass as stringroot.mainloop()If you want to load tkss from a file:save you theme in a fileload it using TkThemeLoader().loadStyleSheet(file_path)example:theme.tkssTk{
    background: "#565657";
}

Label{
    foreground: "#ebebeb";
    background: "#565657";
}

Button{
    foreground: "#ebebeb";
    background: "#565657";
}project.pyfromtkinterimport*fromtkstylesheetimportTkThemeLoaderroot=Tk()Label(root,text="label").pack()Button(root,text="Button").pack()theme=TkThemeLoader(root)theme.loadStyleSheet("theme.tkss")# pass file pathroot.mainloop()Please read further examples on how to switch theme etc,here.
Refer stylesheets exampleshereDocumentationhere
Package: tksvg
tksvg for Python's Tkintertksvgis a package for Tcl/Tk that
adds support for SVG image files. Tkinter makes use of Tcl/Tk under the
hood, and thus can benefit from this addition. Note that SVG support
has been included in Tk 8.7 and thus this package can be made obsolete
in the future when Python gets distributed with Tk 8.7. This repository
is merely a repackaging of thetksvglibrary for Python with a
modified build system.Building and installationThis package makes use of the same build system asgttkand other Tcl C-extensions with CMake. This means that on both Windows
and Linux you will need a working CMake installation that can find the
Tcl development files. If you wish to build with Visual Studio, you can
build with the build system of theupstream.LinuxAdapt the commands to your specific distribution. The commands given
here assume Ubuntu 20.04.sudoaptinstallcmakebuild-essentialtcl-devtk-devpython3-tk
python-mpipinstallscikit-build
pythonsetup.pyinstallWindowsDue to the rolling-release type distribution of MSYS, no up-to-date
build instructions are provided in this file. Please refer to the
AppVeyor build configuration in.appveyor.ymlto derive the latest
build instructions. Some general pointers:The commands assume that you have a workingMSYS2environment. If you do not have this, you'll have to set it up to make
use of the Windows build system.Dependencies of the compiled binaries are detected and found usingDependencies. Make sure it
is available before running thesetup.py installcommand.The AppVeyor configuration may have to work around bugs in MSYS that
you might not encounter if you're using a different version. If you're
confused by how the dependencies are installed, simply refer to the
list found insetup.py.UsageUsing the library has been made as similar as possible to using a normaltk.PhotoImage. Simply create anSvgImageinstance and thetksvglibrary will automatically be loaded for you.importtkinterastkimporttksvgwindow=tk.Tk()svg_image=tksvg.SvgImage(file="tests/orb.svg")label=tk.Label(image=svg_image)label.pack()window.mainloop()License & CopyrightThis repository merely provides a version of the originaltksvgfor Python's Tkinter. The package is available under the BSD-likeTcl License.
The build system (setup.py,.appveyor.ymland.travis.yml) are
available under the terms ofGNU GPLv3,
as any changes to these should be shared under permissive terms so as to
preserve the possibility of building these packages.Copyright (C) 2002-2004 Maxim Shemanarev http://antigrain.com
Copyright (c) 2013-14 Mikko Mononen memon@inside.org
Copyright (c) 2018 Christian Gollwitzer auriocus@gmx.de
Copyright (c) 2018 Christian Werner https://www.androwish.org/
Copyright (c) 2018 Rene Zaumseil r.zaumseil@freenet.de
Copyright (c) 2020 Juliette Monsel
Copyright (c) 2021 RedFantom <redfantom@outlook.com>