PyQt widget for slide show
Project description
pyqt-slideshow
PyQt widget for slide show
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-slideshow
Included Packages
-
pyqt-single-image-graphics-view - main image view
-
pyqt-svg-button - for navigation button on left and right sides
-
pyqt-ani-radiobutton - for navigation button at the bottom
Detailed Description
This widget mainly consists of three child widget.
-
View
-
Navigation button widget - buttons on the both sides of the view
-
Bottom button widget - buttons at the bottom
You can set the image files to show with setFilenames
.
You can watch previous/next image by clicking the navigation button or nth image file by clicking the buttons at the bottom.
Image is automatically changed by internal timer. It is set to 5000 milliseconds by default.
Method Overview
-
setFilenames(filenames: list)
- give the image files. You have to call this one time only so far. -
setInterval(milliseconds: int)
- set the image change interval -
setNavigationButtonVisible(f: bool)
- set the navigation button's visibility(which also decides that you use it or not) -
setBottomButtonVisible(f: bool)
- set the bottom button's visibility(which also decides that you use it or not)
Example
Code Sample
from PyQt5.QtWidgets import QApplication
from pyqt_slideshow import SlideShow
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
s = SlideShow()
s.setFilenames(['bioshock.jpg', 'dragon_age.jpg', 'ride_to_hell_retribution.jpg'])
s.show()
app.exec_()
Result
I'm still working on SvgButton's style. You can see the <, > buttons in the picture. Those things are SvgButton.
It is kinda ugly looking and could be hard to see depending on the photo. So i will definitely change the style.
Note: Don't play the last game on the list.
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 pyqt_slideshow-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24b0e896bc0e24dd30ab960c0e0857007e7550b9ddf6f4f8fc96a53b62a46864 |
|
MD5 | 55833a142e6899956ece84c2a765212f |
|
BLAKE2b-256 | d8056d86ecbf32611af4dc49d6266132df3039d1a59aeef75b3078632211657c |