s3manager-gtk/objectlist.py

53 lines
1.5 KiB
Python

import sys
import time
import threading
from PyQt6.QtWidgets import QApplication, QMainWindow, QHBoxLayout, QVBoxLayout, QWidget, QPushButton, QSlider, QListWidget
from PyQt6.QtMultimedia import QMediaPlayer, QAudioOutput
from PyQt6.QtMultimediaWidgets import QVideoWidget
from PyQt6.QtCore import QUrl, Qt, QEvent
class VideoPlayer(QMainWindow):
def __init__(self):
super().__init__()
self.fswindow = 0
self.dclick = False
self.setWindowTitle("Objects")
self.setGeometry(100, 100, 640, 480)
#self.showFullScreen()
self.returnbutton = QPushButton("return")
self.returnbutton.setFixedSize(60, 33)
self.openbutton = QPushButton("open")
self.openbutton.setFixedSize(60, 33)
self.list_widget = QListWidget(self)
self.list_widget.addItems(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'])
layout = QVBoxLayout()
controls = QHBoxLayout()
controls.addWidget(self.returnbutton)
controls.addWidget(self.openbutton)
layout.addLayout(controls)
layout.addWidget(self.list_widget)
#layout.addWidget(self.slider)
container = QWidget()
container.setLayout(layout)
self.setCentralWidget(container)
#self.set_layout()
def eventFilter(self, obj, event):
pass
return True
if __name__ == "__main__":
app = QApplication(sys.argv)
video_player = VideoPlayer()
video_player.show()
sys.exit(app.exec())