Add python code
This commit is contained in:
parent
462b2eac87
commit
4f9fcf589c
5 changed files with 55 additions and 0 deletions
19
LICENSE
Normal file
19
LICENSE
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
Copyright (c) 2018 The Python Packaging Authority
|
||||||
|
|
||||||
|
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.
|
||||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
This is a simple example package. You can use
|
||||||
|
[GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
|
||||||
|
to write your content.
|
||||||
19
pyproject.toml
Normal file
19
pyproject.toml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "leek"
|
||||||
|
version = "0.0.1"
|
||||||
|
dependencies = [
|
||||||
|
"PySide6"
|
||||||
|
]
|
||||||
|
description = "A small example package"
|
||||||
|
readme = "README.md"
|
||||||
|
classifiers = [
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
leek = "leek.leek:main"
|
||||||
0
src/leek/__init__.py
Normal file
0
src/leek/__init__.py
Normal file
14
src/leek/leek.py
Normal file
14
src/leek/leek.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
from PySide6.QtWidgets import QApplication, QWidget
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
# If you know you won't use command line arguments QApplication([]) works too.
|
||||||
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
|
# Create a Qt widget, which will be our window.
|
||||||
|
window = QWidget()
|
||||||
|
window.show() # IMPORTANT!!!!! Windows are hidden by default.
|
||||||
|
|
||||||
|
# Start the event loop.
|
||||||
|
app.exec()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue