Update upstream source from tag 'upstream/0.3.0.dev15'
Update to upstream version '0.3.0.dev15'
with Debian dir 2376e07b85a1459747b80b1400aa7213ad2039e4
Sébastien Delafond
4 years ago
0 | |
Metadata-Version: 1.1
|
|
0 |
Metadata-Version: 1.2
|
1 | 1 |
Name: panwid
|
2 | |
Version: 0.3.0.dev13
|
|
2 |
Version: 0.3.0.dev15
|
3 | 3 |
Summary: Useful widgets for urwid
|
4 | 4 |
Home-page: https://github.com/tonycpsu/panwid
|
5 | 5 |
Author: Tony Cebzanov
|
|
10 | 10 |
Classifier: Environment :: Console
|
11 | 11 |
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
12 | 12 |
Classifier: Intended Audience :: Developers
|
|
13 |
Requires-Python: >=3.6
|
12 | 12 |
from . import tabview
|
13 | 13 |
from .tabview import *
|
14 | 14 |
|
15 | |
__version__ = "0.3.0.dev13"
|
|
15 |
__version__ = "0.3.0.dev15"
|
16 | 16 |
|
17 | 17 |
__all__ = (
|
18 | 18 |
listbox.__all__
|
6 | 6 |
|
7 | 7 |
DATA_TABLE_COLUMNS = ["_dirty", "_focus_position", "_value_fn", "_cls", "_details", "_rendered_row"]
|
8 | 8 |
|
9 | |
def __init__(self, data=None, columns=None, index=None, index_name="index", use_blist=False, sort=None):
|
|
9 |
def __init__(self, data=None, columns=None, index=None, index_name="index", sort=None):
|
10 | 10 |
|
11 | 11 |
if columns and not index_name in columns:
|
12 | 12 |
columns.insert(0, index_name)
|
|
16 | 16 |
columns=columns,
|
17 | 17 |
index=index,
|
18 | 18 |
index_name=index_name,
|
19 | |
use_blist=use_blist,
|
20 | 19 |
sort=sort
|
21 | 20 |
)
|
22 | 21 |
# for c in self.DATA_TABLE_COLUMNS:
|
|
127 | 126 |
kwargs = dict(
|
128 | 127 |
columns = colnames,
|
129 | 128 |
data = data,
|
130 | |
use_blist=True,
|
131 | 129 |
sort=False,
|
132 | 130 |
index=data[self.index_name],
|
133 | 131 |
index_name = self.index_name,
|
8 | 8 |
import copy
|
9 | 9 |
import traceback
|
10 | 10 |
import math
|
11 | |
from blist import blist
|
12 | 11 |
from dataclasses import *
|
13 | 12 |
import typing
|
14 | 13 |
|
|
173 | 172 |
self._message_showing = False
|
174 | 173 |
|
175 | 174 |
self.filters = None
|
176 | |
self.filtered_rows = blist()
|
|
175 |
self.filtered_rows = list()
|
177 | 176 |
|
178 | 177 |
if self.divider:
|
179 | 178 |
self._columns = list(intersperse_divider(self._columns, self.divider))
|
|
184 | 183 |
|
185 | 184 |
kwargs = dict(
|
186 | 185 |
columns = self.column_names,
|
187 | |
use_blist=True,
|
188 | 186 |
sort=False,
|
189 | 187 |
index_name = self.index or None
|
190 | 188 |
# sorted=True,
|
|
195 | 193 |
# self.df = DataTableDataFrame(**kwargs)
|
196 | 194 |
self.df = DataTableDataFrame(
|
197 | 195 |
columns = self.column_names,
|
198 | |
use_blist=True,
|
199 | 196 |
sort=False,
|
200 | 197 |
index_name = self.index or None
|
201 | 198 |
)
|
|
1188 | 1185 |
elif not isinstance(filters, list):
|
1189 | 1186 |
filters = [filters]
|
1190 | 1187 |
|
1191 | |
self.filtered_rows = blist(
|
|
1188 |
self.filtered_rows = list(
|
1192 | 1189 |
i
|
1193 | 1190 |
for i, row in enumerate(self.df.iterrows())
|
1194 | 1191 |
if not filters or all(
|
|
1206 | 1203 |
# self.invalidate()
|
1207 | 1204 |
|
1208 | 1205 |
def clear_filters(self):
|
1209 | |
self.filtered_rows = blist(range(len(self.df)))
|
|
1206 |
self.filtered_rows = list(range(len(self.df)))
|
1210 | 1207 |
self.filters = None
|
1211 | 1208 |
# self.invalidate()
|
1212 | 1209 |
|
0 | |
Metadata-Version: 1.1
|
|
0 |
Metadata-Version: 1.2
|
1 | 1 |
Name: panwid
|
2 | |
Version: 0.3.0.dev13
|
|
2 |
Version: 0.3.0.dev15
|
3 | 3 |
Summary: Useful widgets for urwid
|
4 | 4 |
Home-page: https://github.com/tonycpsu/panwid
|
5 | 5 |
Author: Tony Cebzanov
|
|
10 | 10 |
Classifier: Environment :: Console
|
11 | 11 |
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
12 | 12 |
Classifier: Intended Audience :: Developers
|
|
13 |
Requires-Python: >=3.6
|
0 | 0 |
urwid
|
1 | 1 |
urwid-utils>=0.1.2
|
2 | 2 |
six
|
3 | |
raccoon==2.1.5
|
4 | |
blist
|
|
3 |
raccoon>=3.0.0
|
5 | 4 |
orderedattrdict
|
7 | 7 |
|
8 | 8 |
name = 'panwid'
|
9 | 9 |
setup(name=name,
|
10 | |
version='0.3.0.dev13',
|
|
10 |
version='0.3.0.dev15',
|
11 | 11 |
description='Useful widgets for urwid',
|
12 | 12 |
author='Tony Cebzanov',
|
13 | 13 |
author_email='tonycpsu@gmail.com',
|
14 | 14 |
url='https://github.com/tonycpsu/panwid',
|
|
15 |
python_requires='>=3.6',
|
15 | 16 |
classifiers=[
|
16 | 17 |
'Environment :: Console',
|
17 | 18 |
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
|
|
24 | 25 |
"urwid",
|
25 | 26 |
"urwid-utils>=0.1.2",
|
26 | 27 |
"six",
|
27 | |
"raccoon==2.1.5",
|
28 | |
"blist",
|
|
28 |
"raccoon>=3.0.0",
|
29 | 29 |
"orderedattrdict"
|
30 | 30 |
],
|
31 | 31 |
test_suite="test",
|