mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
docs(dap_combo_box): updated screenshot
This commit is contained in:
@ -165,21 +165,18 @@ class DapComboBox(BECWidget, QWidget):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
# pragma: no cover
|
if __name__ == "__main__": # pragma: no cover
|
||||||
def main():
|
# pylint: disable=import-outside-toplevel
|
||||||
"""Main function to run the DapComboBox widget."""
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from qtpy.QtWidgets import QApplication
|
from qtpy.QtWidgets import QApplication
|
||||||
|
|
||||||
from bec_widgets.utils.colors import set_theme
|
from bec_widgets.utils.colors import set_theme
|
||||||
|
|
||||||
app = QApplication(sys.argv)
|
app = QApplication([])
|
||||||
set_theme("auto")
|
set_theme("dark")
|
||||||
widget = DapComboBox()
|
widget = QWidget()
|
||||||
|
widget.setFixedSize(200, 200)
|
||||||
|
layout = QVBoxLayout()
|
||||||
|
widget.setLayout(layout)
|
||||||
|
layout.addWidget(DapComboBox())
|
||||||
widget.show()
|
widget.show()
|
||||||
sys.exit(app.exec_())
|
app.exec_()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 7.0 KiB |
Reference in New Issue
Block a user