Skip to content

Commit

Permalink
Remove vPolicy attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Sep 30, 2022
1 parent 1bae7af commit ccacd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from qtpy.QtWidgets import QWidget, QPushButton, QSpacerItem, QSizePolicy, QHBoxLayout, QVBoxLayout, QLabel
from qtpy.QtWidgets import QWidget, QPushButton, QSpacerItem, QHBoxLayout, QVBoxLayout, QLabel

from qthandy import vbox, clear_layout, hbox, margins, flow, FlowLayout

Expand All @@ -11,7 +11,7 @@ def test_clear_layout(qtbot):
layout = vbox(widget)
layout.addWidget(QPushButton('Btn1', widget))
layout.addWidget(QPushButton('Btn2', widget))
layout.addSpacerItem(QSpacerItem(50, 50, vPolicy=QSizePolicy.Expanding))
layout.addSpacerItem(QSpacerItem(50, 50))

clear_layout(widget)
assert layout.count() == 0
Expand Down

0 comments on commit ccacd7d

Please sign in to comment.