A gameboard widget for pyqt gui's package
Project description
PyQtGameBoard
PyQt5 widget that draws a board on the screen to include in games or map drawing application.
Install
pip install yongshi-pyqtgameboard
Import
from pyqtgameboards.HexagonBoard import QHexagonboard
How to
to try out, copying the following:
if __name__ == '__main__':
global app
app = QtWidgets.QApplication(sys.argv)
global main
main = QtWidgets.QMainWindow()
main.setCentralWidget(QHexagonboard(
horizontal = True,
rows = 20,
columns = 10
))
main.showMaximized()
sys.exit(app.exec_())
Licence
Licensed under GPL-3.0-or-later, see LICENSE file for details.
Copyright © 2020 Michael-Yongshi.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the 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 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
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
Built Distribution
Hashes for yongshi-pyqtgameboard-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87c44dd118dc980d657ebed56c85ac0f034e58c4538811f4ca65710e7780a530 |
|
MD5 | 0dfb334f750518b985fb5e769edf39ba |
|
BLAKE2b-256 | 81c3b856b7adaac5465879de1db3ab4440eb934a46e158a6b34f94fd5fc38c84 |
Hashes for yongshi_pyqtgameboard-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ebb3113a0ebf50636c7ab6c7c89d4915749c2aa9e425268c96f7abf20cdd19 |
|
MD5 | 9f06a9ec2cd16d2065c78ff2f79bbf31 |
|
BLAKE2b-256 | 2c5ebb4252fe762269f8606e7c773825b4063e0b80d0f4af4211ed948508b8a3 |