Accepting request 933948 from devel:languages:python:numeric
- Update to 0.1.31 * Fix order of columns after undo * Fix pasting of data with existing column names * Avoid empty trailing row after pasting OBS-URL: https://build.opensuse.org/request/show/933948 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-qdatamatrix?expand=0&rev=3
This commit is contained in:
22
example.py
22
example.py
@@ -24,14 +24,22 @@ import sys
|
||||
from qtpy import QtWidgets
|
||||
import qtpy
|
||||
|
||||
dm = DataMatrix(length=3)
|
||||
dm.col1 = 1, 2, 3
|
||||
dm.col2 = 'a', 'b', 'c'
|
||||
print(dm)
|
||||
|
||||
def show():
|
||||
print(qdm._dm)
|
||||
for n, c in qdm._dm.columns:
|
||||
print(n, repr(c._rowid))
|
||||
|
||||
|
||||
dm = DataMatrix(length=4)
|
||||
dm.sorted = False
|
||||
dm.col1 = range(4)
|
||||
dm.col3 = ['a', 'b', 'c', 'd']
|
||||
dm.col2 = ['e', 'f', 'g', 'h']
|
||||
print(dm)
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
qdm = QDataMatrix(dm)
|
||||
qdm.resize(600,400)
|
||||
# qdm.refresh()
|
||||
qdm = QDataMatrix(dm, read_only=False)
|
||||
qdm.resize(600, 400)
|
||||
qdm.changed.connect(show)
|
||||
qdm.show()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 25 20:52:01 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 0.1.31
|
||||
* Fix order of columns after undo
|
||||
* Fix pasting of data with existing column names
|
||||
* Avoid empty trailing row after pasting
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 19 19:04:31 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-python-qdatamatrix
|
||||
Version: 0.1.29
|
||||
Version: 0.1.31
|
||||
Release: 0
|
||||
Summary: A PyQt4/PyQt5 widget for viewing and editing a DataMatrix object
|
||||
License: GPL-3.0-or-later
|
||||
@@ -28,20 +28,20 @@ URL: https://github.com/open-cogsci/python-qdatamatrix
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-qdatamatrix/python-qdatamatrix-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/open-cogsci/python-qdatamatrix/master/copyright
|
||||
Source2: https://raw.githubusercontent.com/open-cogsci/python-qdatamatrix/master/example.py
|
||||
BuildRequires: %{python_module PrettyTable}
|
||||
BuildRequires: %{python_module QtPy}
|
||||
BuildRequires: %{python_module fastnumbers}
|
||||
BuildRequires: %{python_module python-datamatrix}
|
||||
# QtPy has a number of possible backends, none of them mandatory, use PyQt5 for the build
|
||||
BuildRequires: %{python_module qt5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION TEST REQUIREMENTS (recommendations by datamatrix)
|
||||
BuildRequires: xvfb-run
|
||||
Requires: python-PrettyTable
|
||||
BuildRequires: %{python_module fastnumbers}
|
||||
BuildRequires: %{python_module prettytable}
|
||||
#/SECTION
|
||||
Requires: python-QtPy
|
||||
Requires: python-python-datamatrix
|
||||
Recommends: python-fastnumbers
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9724e52e75c53f65a49afa056c3a11222d8d7f42a85c20572d4df39407cf977d
|
||||
size 7585
|
||||
3
python-qdatamatrix-0.1.31.tar.gz
Normal file
3
python-qdatamatrix-0.1.31.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:925d617a892dfdf6aecac077fb025dfe7c0e7bcb6751ea9a84d2654229c943bb
|
||||
size 8116
|
||||
Reference in New Issue
Block a user