forked from openlp/openlp
Update appveyor
This commit is contained in:
parent
c3f00bf288
commit
04e759dd7c
@ -30,7 +30,7 @@ install:
|
|||||||
# Update pip
|
# Update pip
|
||||||
- python -m pip install --upgrade pip
|
- python -m pip install --upgrade pip
|
||||||
# Install generic dependencies from pypi
|
# Install generic dependencies from pypi
|
||||||
- python -m pip install sqlalchemy alembic appdirs chardet beautifulsoup4 lxml Mako mysql-connector-python pytest mock psycopg2-binary websockets waitress six webob requests QtAwesome PyQt5 PyQtWebEngine pymediainfo PyMuPDF QDarkStyle python-vlc zeroconf flask-cors pytest-qt pyenchant pysword
|
- python -m pip install sqlalchemy alembic appdirs chardet beautifulsoup4 lxml Mako mysql-connector-python pytest mock psycopg2-binary websockets waitress six webob requests QtAwesome PyQt5 PyQtWebEngine pymediainfo PyMuPDF QDarkStyle python-vlc zeroconf flask-cors pytest-qt pyenchant pysword qrcode
|
||||||
# Install Windows only dependencies
|
# Install Windows only dependencies
|
||||||
- cmd: python -m pip install pyodbc pypiwin32
|
- cmd: python -m pip install pyodbc pypiwin32
|
||||||
# Mac only dependencies
|
# Mac only dependencies
|
||||||
|
17
temp.py
Normal file
17
temp.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import qrcode
|
||||||
|
import qrcode.image.svg
|
||||||
|
|
||||||
|
method = "basic"
|
||||||
|
if method == 'basic':
|
||||||
|
# Simple factory, just a set of rects.
|
||||||
|
factory = qrcode.image.svg.SvgImage
|
||||||
|
elif method == 'fragment':
|
||||||
|
# Fragment factory (also just a set of rects)
|
||||||
|
factory = qrcode.image.svg.SvgFragmentImage
|
||||||
|
else:
|
||||||
|
# Combined path factory, fixes white space that may occur when zooming
|
||||||
|
factory = qrcode.image.svg.SvgPathImage
|
||||||
|
|
||||||
|
img = qrcode.make('Some data here', image_factory=factory)
|
||||||
|
|
||||||
|
a =1
|
Loading…
Reference in New Issue
Block a user