mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-16 10:03:42 -07:00
code release
This commit is contained in:
parent
b941ba41a3
commit
a902f11f74
354 changed files with 826570 additions and 1 deletions
21
xlib/qt/widgets/QXGridLayout.py
Normal file
21
xlib/qt/widgets/QXGridLayout.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from PyQt6.QtCore import *
|
||||
from PyQt6.QtGui import *
|
||||
from PyQt6.QtWidgets import *
|
||||
|
||||
from ..core.widget import set_contents_margins
|
||||
|
||||
|
||||
class QXGridLayout(QGridLayout):
|
||||
def __init__(self, contents_margins=0, spacing=None, horizontal_spacing=None, vertical_spacing=None):
|
||||
super().__init__()
|
||||
set_contents_margins(self, contents_margins)
|
||||
|
||||
if spacing is not None:
|
||||
self.setSpacing(spacing)
|
||||
|
||||
if horizontal_spacing is not None:
|
||||
self.setHorizontalSpacing(horizontal_spacing)
|
||||
|
||||
if vertical_spacing is not None:
|
||||
self.setVerticalSpacing(vertical_spacing)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue