Skip to content

Commit

Permalink
* add: more FillStyle constants
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Jan 7, 2020
1 parent 487020f commit b443d9b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ History
===========
1.0.18
-----------
* add: put_image()
* change: capture_screen()'s 3rd and 4th parameter to width and height



1.0.17
-----------
Expand Down
2 changes: 1 addition & 1 deletion easygraphics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__ = 'Roy Qu'
__email__ = 'royqh1979@gmail.com'
__version__ = '1.0.17'
__version__ = '1.0.18'

from .easygraphics import *

Expand Down
14 changes: 14 additions & 0 deletions easygraphics/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,20 @@ class FillStyle:
"""Not fill at all. For example, draw_circle() will not fill."""
SOLID_FILL = QtCore.Qt.SolidPattern
"""Fill with solid color. see set_fill_color()."""
LINE_FILL = QtCore.Qt.HorPattern
"""Fill with horizontal lines."""
LTSLASH_FILL = QtCore.Qt.BDiagPattern
SLASH_FILL = QtCore.Qt.BDiagPattern
"""File with diagonal lines."""
BKSLASH_FILL = QtCore.Qt.FDiagPattern
LTBKSLASH_FILL = QtCore.Qt.FDiagPattern
"""File with diagonal lines."""
HATCH_FILL = QtCore.Qt.CrossPattern
XHATCH_FILL = QtCore.Qt.DiagCrossPattern
# INTERLEAVE_FILL
WIDE_DOT_FILL = QtCore.Qt.Dense7Pattern
CLOSE_DOT_FILL = QtCore.Qt.Dense6Pattern



class Color:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='easygraphics',
version='1.0.17.2',
version='1.0.18',
description='"A TC Graphics style like Graphics Library"',
long_description=readme + '\n\n' + history,
author='Roy Qu',
Expand Down

0 comments on commit b443d9b

Please sign in to comment.