A command that allows you to place a label in any grid location.
Project description
mygui 0.0.9
lgrid
- A new Command that allows you to place a label in a grid.
- Simple and elegant implimentation as follows:
- lgrid({window_or_frame},{Text for label}, {Column Number},{Row Number})
- lgrid(root,"hello",1,5) Places a word 'hello' in row 1 column 5
egrid
- A new Command that allows you to place an entry box in a grid.
- Simple and elegant implimentation as follows:
Example script:
import os
from tkinter import Tk
from mygui import egrid, lgrid
root = Tk()
root.minsize(300, 100)
lgrid(root, 'Label placed in grid 0,0', 0, 0)
lgrid(root, 'Label placed in grid 0,1', 0, 1)
egrid(root, 1, 0)
root.mainloop()
MIT License
Copyright (c) 2022 Michael Mulvey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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
mygui-0.0.9.tar.gz
(3.3 kB
view hashes)
Built Distribution
mygui-0.0.9-py3-none-any.whl
(5.1 kB
view hashes)