Skip to content

Commit

Permalink
release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
omamkaz committed Jun 26, 2024
1 parent 23ef13d commit ef8bf05
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Qtica/animations/animation_group.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PySide6.QtCore import QParallelAnimationGroup, QSequentialAnimationGroup
from ..core import AbstractQObject
from PySide6.QtCore import QParallelAnimationGroup, QSequentialAnimationGroup


class SequentialAnimationGroup(AbstractQObject, QSequentialAnimationGroup):
Expand Down
2 changes: 1 addition & 1 deletion Qtica/animations/property_animation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PySide6.QtCore import QPropertyAnimation
from ..core import AbstractQObject
from PySide6.QtCore import QPropertyAnimation


class PropertyAnimation(AbstractQObject, QPropertyAnimation):
Expand Down
2 changes: 1 addition & 1 deletion Qtica/core/_IODevice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PySide6.QtCore import QIODevice
from ._qobject import AbstractQObject
from PySide6.QtCore import QIODevice


class AbstractIODevice(AbstractQObject):
Expand Down
7 changes: 4 additions & 3 deletions Qtica/core/_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from .. import enums
from typing import Any, Union
from ._base import WidgetsType
from ._declarative import AbstractDec, TrackingDec

from PySide6.QtCore import Qt, QObject
from PySide6.QtWidgets import QApplication, QWidget
from ._declarative import AbstractDec, TrackingDec
from ._base import WidgetsType
from .. import enums


class Api:
Expand Down
5 changes: 3 additions & 2 deletions Qtica/core/_base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import Any, Callable, TypeAlias, Union
from PySide6.QtCore import Qt, QObject
from PySide6.QtWidgets import QApplication
from ..utils.caseconverter import camelcase, snakecase
from .objects import Args, MArgs, Func
from .. import enums

from PySide6.QtCore import Qt, QObject
from PySide6.QtWidgets import QApplication


EventsType: TypeAlias = Union[list[tuple[Union[enums.Events, str], Callable[..., Any]]],
dict[Union[enums.Events, str], Callable[..., Any]]]
Expand Down
3 changes: 2 additions & 1 deletion Qtica/core/_painter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ._declarative import AbstractDec

from PySide6.QtGui import QPaintEvent
from PySide6.QtWidgets import QWidget
from ._declarative import AbstractDec


class AbstractPainter(AbstractDec):
Expand Down
2 changes: 0 additions & 2 deletions Qtica/core/_qobject.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/python3

from ._base import AbstractBase
from ._declarative import AbstractDec

Expand Down
5 changes: 3 additions & 2 deletions Qtica/core/widgets/box_layout.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from typing import TypeAlias, Union
from PySide6.QtWidgets import QLayoutItem, QSpacerItem, QWidget, QLayout
from ...utils.alignment import Alignment
from .._qobject import AbstractQObject
from ..objects import BoxLayoutWrapper
from ...utils.alignment import Alignment

from PySide6.QtWidgets import QLayoutItem, QSpacerItem, QWidget, QLayout


BoxLayoutChildrenType: TypeAlias = list[Union[QWidget, QLayout, BoxLayoutWrapper, Alignment]]
Expand Down
2 changes: 1 addition & 1 deletion Qtica/core/widgets/button.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PySide6.QtCore import Signal
from .widget import AbstractWidget
from PySide6.QtCore import Signal


class AbstractButton(AbstractWidget):
Expand Down
3 changes: 2 additions & 1 deletion Qtica/core/widgets/container.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import TypeAlias, Union
from PySide6.QtWidgets import QLayout, QWidget
from .widget import AbstractWidget

from PySide6.QtWidgets import QLayout, QWidget


ContainerChildType: TypeAlias = Union[QWidget, QLayout, list[QWidget]]

Expand Down
3 changes: 2 additions & 1 deletion Qtica/core/widgets/dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from .widget import AbstractWidget

from PySide6.QtWidgets import QApplication, QDialog, QWidget
from PySide6.QtCore import QEvent, QObject, QTimer
from PySide6.QtGui import QCloseEvent, QShowEvent
from .widget import AbstractWidget


class AbstractDialog(AbstractWidget, QDialog):
Expand Down
7 changes: 4 additions & 3 deletions Qtica/core/widgets/widget.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import TypeAlias, Union
from PySide6.QtWidgets import QGraphicsEffect
from PySide6.QtCore import QAbstractAnimation, QAnimationGroup,QTimer, QVariantAnimation, Qt, Signal
from .._base import AbstractBase
from .._declarative import AbstractDec
from ..objects import PosEvents, PosEventsRange, PosEventsArg, QStyleSheet
from ...utils.key_events import MouseButtons, Modifiers
from ..objects import PosEvents, PosEventsRange, PosEventsArg, QStyleSheet

from PySide6.QtWidgets import QGraphicsEffect
from PySide6.QtCore import QAbstractAnimation, QAnimationGroup,QTimer, QVariantAnimation, Qt, Signal


QssType: TypeAlias = Union[str, dict, QStyleSheet]
Expand Down
8 changes: 3 additions & 5 deletions Qtica/core/widgets/window.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from typing import Union
from .widget import AbstractWidget

from PySide6.QtCore import Signal
from PySide6.QtGui import QShowEvent, QCloseEvent
from PySide6.QtWidgets import (
QWidget,
QLayout
)
from .widget import AbstractWidget
from PySide6.QtWidgets import QWidget,QLayout


class AbstractWindow(AbstractWidget):
Expand Down
8 changes: 5 additions & 3 deletions Qtica/services/_methods.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import re

from typing import Union
from random import random
from ..core import AbstractDialog
from ..utils.maths import deg_to_coordinates

from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QWidget
from PySide6.QtGui import QColor, QGuiApplication, QLinearGradient, QPixmap, QScreen, QFontMetrics
from ..utils.maths import deg_to_coordinates
from ..core import AbstractDialog
import re


CORNERS = {
Expand Down
3 changes: 2 additions & 1 deletion Qtica/services/clipboard.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from typing import Union
from enum import Enum, auto
from ..utils.caseconverter import camelcase

from PySide6.QtCore import QMimeData
from PySide6.QtWidgets import QApplication
from PySide6.QtGui import QClipboard, QImage, QPixmap
from ..utils.caseconverter import camelcase


class Clipboard:
Expand Down
3 changes: 1 addition & 2 deletions Qtica/utils/alignment.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/python3
from enum import IntFlag

from PySide6.QtCore import Qt
from PySide6.QtWidgets import QWidget
from enum import IntFlag


class Alignment:
Expand Down
1 change: 0 additions & 1 deletion Qtica/utils/classes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
from enum import EnumMeta
from os import path as _os_path
from inspect import getfile as _ins_getfile
Expand Down
4 changes: 1 addition & 3 deletions Qtica/utils/env_var.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/python3

import os

from enum import Enum
from typing import Any, Union
from ..enums.env_vars import EnvVars
import os


class EnvVar:
Expand Down
2 changes: 1 addition & 1 deletion Qtica/utils/exception_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from copy import deepcopy
from typing import Callable, Union
from ..core.objects import Func
from typing import Callable, Union


def TryExc(func: Union[Callable, Func], *default):
Expand Down
5 changes: 2 additions & 3 deletions Qtica/utils/key_events.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/python3

from typing import Any, Union
from string import digits

from PySide6.QtCore import Qt
from PySide6.QtGui import QKeyEvent, QKeySequence, QMouseEvent
from string import digits


class Modifiers:
Expand Down

0 comments on commit ef8bf05

Please sign in to comment.