forked from ozmartian/vidcutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starting to add new timeline ozmartian#3
- Loading branch information
1 parent
58232c1
commit 9242072
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
|
||
from PyQt5.QtWidgets import ( | ||
QApplication, | ||
QHBoxLayout, | ||
QPushButton, | ||
QWidget, | ||
) | ||
|
||
class Window(QWidget): | ||
def __init__(self): | ||
super().__init__() | ||
self.setWindowTitle("QHBoxLayout Example") | ||
# Create a QHBoxLayout instance | ||
layout = QHBoxLayout() | ||
# Add widgets to the layout | ||
layout.addWidget(QPushButton("Left-Most")) | ||
layout.addWidget(QPushButton("Center"), 1) | ||
layout.addWidget(QPushButton("Right-Most"), 2) | ||
# Set the layout on the application's window | ||
self.setLayout(layout) | ||
print(self.children()) | ||
|
||
if __name__ == "__main__": | ||
app = QApplication(sys.argv) | ||
window = Window() | ||
window.show() | ||
sys.exit(app.exec_()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters