<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/urwid.git/examples, branch master</title>
<subtitle>github.com: wardi/urwid.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/'/>
<entry>
<title>Fix incorrect type cast in vterm (`apply_mapping` should return `bytes`) (#545)</title>
<updated>2023-04-25T17:20:33+00:00</updated>
<author>
<name>Alexey Stepanov</name>
<email>penguinolog@users.noreply.github.com</email>
</author>
<published>2023-04-25T17:20:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=1cc1d63358f7759785b39079eca069ed41078b6d'/>
<id>1cc1d63358f7759785b39079eca069ed41078b6d</id>
<content type='text'>
* Fix incorrect type cast in vterm (`apply_mapping` should return `bytes`)

Add `time.sleep(0.1)` to the event loop tests:
  in the worst scenario on windows and slow machine
  function in parallel thread/async can wait up to 80 milliseconds (tested)
Add type annotations to the `vterm` and `test_vterm` to simplify error lookup.
* Fix `DeprecationWarning` in doctests &amp; examples
* Add `pytest` configuration in `pyproject.toml` without migration
* `Signals.emit()` rework: stop `user_args` join with `weak_args`

Partial: #544
Partial: #512
Partial: #406

* drop `sleep`: not enough effective with pytest

* set timer for errors raise to 0: faster raise, faster test done

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix incorrect type cast in vterm (`apply_mapping` should return `bytes`)

Add `time.sleep(0.1)` to the event loop tests:
  in the worst scenario on windows and slow machine
  function in parallel thread/async can wait up to 80 milliseconds (tested)
Add type annotations to the `vterm` and `test_vterm` to simplify error lookup.
* Fix `DeprecationWarning` in doctests &amp; examples
* Add `pytest` configuration in `pyproject.toml` without migration
* `Signals.emit()` rework: stop `user_args` join with `weak_args`

Partial: #544
Partial: #512
Partial: #406

* drop `sleep`: not enough effective with pytest

* set timer for errors raise to 0: faster raise, faster test done

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate legacy property creation (#533)</title>
<updated>2023-04-12T05:47:14+00:00</updated>
<author>
<name>Alexey Stepanov</name>
<email>penguinolog@users.noreply.github.com</email>
</author>
<published>2023-04-12T05:47:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=8a0a6d166e4cef88a7e7b644abee8712eacee7f6'/>
<id>8a0a6d166e4cef88a7e7b644abee8712eacee7f6</id>
<content type='text'>
* Deprecate legacy property creation

* Drop long time ago removed methods (never returning methods)
* Move large part of property implementations under `@property`
* Emit `PendingDeprecationWarning`
  for old compatibility code
  for public methods used as core for property and methods for compatibility
* Emit `DeprecationWarning`
  for private methods used in property construction
  using `property()` call

Due to amount of copy-paste like changes, for containers shared part is moved to the existing base classes
Add `__len__` to the list based containers. Related #445
Fix typo in type annotation for `Frame.mouse_event`

* Update urwid/canvas.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Update urwid/canvas.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Update urwid/tests/test_container.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Fix typo in test name

* Frame `header`, `body` and `footer` also has property and methods from pre-property era

Make consistent with other containers

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;
Co-authored-by: Ian Ward &lt;ian@excess.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Deprecate legacy property creation

* Drop long time ago removed methods (never returning methods)
* Move large part of property implementations under `@property`
* Emit `PendingDeprecationWarning`
  for old compatibility code
  for public methods used as core for property and methods for compatibility
* Emit `DeprecationWarning`
  for private methods used in property construction
  using `property()` call

Due to amount of copy-paste like changes, for containers shared part is moved to the existing base classes
Add `__len__` to the list based containers. Related #445
Fix typo in type annotation for `Frame.mouse_event`

* Update urwid/canvas.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Update urwid/canvas.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Update urwid/tests/test_container.py

Co-authored-by: Ian Ward &lt;ian@excess.org&gt;

* Fix typo in test name

* Frame `header`, `body` and `footer` also has property and methods from pre-property era

Make consistent with other containers

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;
Co-authored-by: Ian Ward &lt;ian@excess.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Python 37+ initial migration (#522)</title>
<updated>2023-03-31T15:08:50+00:00</updated>
<author>
<name>Alexey Stepanov</name>
<email>penguinolog@users.noreply.github.com</email>
</author>
<published>2023-03-31T15:08:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=ea7e615ef5ee0897f66210f47ab6390889d7b313'/>
<id>ea7e615ef5ee0897f66210f47ab6390889d7b313</id>
<content type='text'>
* Initial migration to the python 3.7: Semi-automatic changes

CI related:
Update `tox.ini` and `.travis.yml` to run python3 only tests
Python 3.11 tests is commented-out on travis until #517 is not merged

Manual changes:
* `setup.py`: classifiers, remove python2 compatibility code
* `docs/manual/wcur2.py`: looks like file was never completed, syntax is invalid
* `urwid.compat`: removed `ord2`, `bytes3`, `text_type`, `xrange` and `text_types`

Automatic changes (no manual editing, AST validated equality:
* removed `u` prefix from all strings: not allowed in modern python code
* `bytes()` -&gt; `b''`
* `== None` -&gt; `is None`
* subclassing of `object`
* `super(&lt;Class&gt;`, self&gt;)` -&gt;`super()`
* `from __future__ import ...` python3 compatibility imports
* `set(&lt;Iterable[Hashable]&gt;)` -&gt; `{&lt;Hashable&gt;}`
* partial f-strings conversion
* (`IOError`, `select.error`, `socket.error`) -&gt; `OSError`

* Switch to f-strings (automatic changes)

* Remove `urwid.compat.B`

* Remove `urwid.compat.with_metaclass`

* use native `super()` instead of `self.__super`

* Remove `urwid.compat.chr2`

* Remove `urwid.split_repr.python3_repr`

* Use native `@classmethod` and `@property` where overload is not possible

* Add `from __future__ import annotations`

* automatically sort imports

* Add DeprecationWarning to the deprecated methods

most IDE's will recognize it and annotate during new code usage
call with "warnings as errors" mode will help to refactor other users

* Address comments

* replace homepage address in all files
* remove outdated comments in compat.py
* make wcur2.py correct python code. For example subclass
* replace `self.__super` by `super()` in examples
* fix asyncio_socket_server.py: magic with `asyncio` became wrong

* Remove `widget.update_wrapper`: this was backport of python `functools.update_wrapper`

* display_common.py: fix trivial typo in _colors calculation

* use `sorted` method instead of list construction with later sorting

* Address comments

* `wcur2` include in docs
* warning on `signals.Signals.emit`

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Initial migration to the python 3.7: Semi-automatic changes

CI related:
Update `tox.ini` and `.travis.yml` to run python3 only tests
Python 3.11 tests is commented-out on travis until #517 is not merged

Manual changes:
* `setup.py`: classifiers, remove python2 compatibility code
* `docs/manual/wcur2.py`: looks like file was never completed, syntax is invalid
* `urwid.compat`: removed `ord2`, `bytes3`, `text_type`, `xrange` and `text_types`

Automatic changes (no manual editing, AST validated equality:
* removed `u` prefix from all strings: not allowed in modern python code
* `bytes()` -&gt; `b''`
* `== None` -&gt; `is None`
* subclassing of `object`
* `super(&lt;Class&gt;`, self&gt;)` -&gt;`super()`
* `from __future__ import ...` python3 compatibility imports
* `set(&lt;Iterable[Hashable]&gt;)` -&gt; `{&lt;Hashable&gt;}`
* partial f-strings conversion
* (`IOError`, `select.error`, `socket.error`) -&gt; `OSError`

* Switch to f-strings (automatic changes)

* Remove `urwid.compat.B`

* Remove `urwid.compat.with_metaclass`

* use native `super()` instead of `self.__super`

* Remove `urwid.compat.chr2`

* Remove `urwid.split_repr.python3_repr`

* Use native `@classmethod` and `@property` where overload is not possible

* Add `from __future__ import annotations`

* automatically sort imports

* Add DeprecationWarning to the deprecated methods

most IDE's will recognize it and annotate during new code usage
call with "warnings as errors" mode will help to refactor other users

* Address comments

* replace homepage address in all files
* remove outdated comments in compat.py
* make wcur2.py correct python code. For example subclass
* replace `self.__super` by `super()` in examples
* fix asyncio_socket_server.py: magic with `asyncio` became wrong

* Remove `widget.update_wrapper`: this was backport of python `functools.update_wrapper`

* display_common.py: fix trivial typo in _colors calculation

* use `sorted` method instead of list construction with later sorting

* Address comments

* `wcur2` include in docs
* warning on `signals.Signals.emit`

---------

Co-authored-by: Aleksei Stepanov &lt;alekseis@nvidia.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Use == instead of "is" for equality testing (#431)</title>
<updated>2023-03-28T17:12:02+00:00</updated>
<author>
<name>naglis</name>
<email>827324+naglis@users.noreply.github.com</email>
</author>
<published>2023-03-28T17:12:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=3ce642918d1fb443b3b484e5418215c9f9b8796c'/>
<id>3ce642918d1fb443b3b484e5418215c9f9b8796c</id>
<content type='text'>
Identity check (`is`, `is not`) with certain literals (e.g. strings,
numbers) is not guaranteed by the language specification to work and
issue a warning starting with Python 3.8, e.g.:

&gt; examples/browse.py:326: SyntaxWarning: "is" with a literal. Did you mean "=="?</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Identity check (`is`, `is not`) with certain literals (e.g. strings,
numbers) is not guaranteed by the language specification to work and
issue a warning starting with Python 3.8, e.g.:

&gt; examples/browse.py:326: SyntaxWarning: "is" with a literal. Did you mean "=="?</pre>
</div>
</content>
</entry>
<entry>
<title>Fix column label typo in tour example</title>
<updated>2021-04-13T17:12:54+00:00</updated>
<author>
<name>devfull</name>
<email>26844641+devfull@users.noreply.github.com</email>
</author>
<published>2021-04-13T17:12:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=2bac325387069bbc1c911807dee98852cdae1906'/>
<id>2bac325387069bbc1c911807dee98852cdae1906</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix crash with "ellipsis" clipping for py2</title>
<updated>2020-08-18T15:31:46+00:00</updated>
<author>
<name>akorb</name>
<email>andreas.d.korb@gmail.com</email>
</author>
<published>2020-08-18T15:31:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=f2c0680d0b2dff3665d65f89560f7a0c8d52b214'/>
<id>f2c0680d0b2dff3665d65f89560f7a0c8d52b214</id>
<content type='text'>
tour.py works with py2 now
Typo in tour.py
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tour.py works with py2 now
Typo in tour.py
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fix/terminal-unicode-python3'</title>
<updated>2019-11-06T03:05:32+00:00</updated>
<author>
<name>Tony Cebzanov</name>
<email>tonycpsu@gmail.com</email>
</author>
<published>2019-11-06T03:05:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=6c5145835fbca22f7ff2365ccff73fc4291f9453'/>
<id>6c5145835fbca22f7ff2365ccff73fc4291f9453</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add demo of ellipsis wrapping mode to tour.py example.</title>
<updated>2019-10-17T21:21:46+00:00</updated>
<author>
<name>Tony Cebzanov</name>
<email>tonycpsu@gmail.com</email>
</author>
<published>2019-10-17T21:21:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=b3443a9fcb8245456c9af2eb32b36d5148298581'/>
<id>b3443a9fcb8245456c9af2eb32b36d5148298581</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix AttributeError on mouse click</title>
<updated>2019-08-06T07:36:43+00:00</updated>
<author>
<name>mbarkhau</name>
<email>mbarkhau@gmail.com</email>
</author>
<published>2019-07-20T15:58:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=5554731516d3d788ee7175395ab6a9b5775092e3'/>
<id>5554731516d3d788ee7175395ab6a9b5775092e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added support for input encoding in Terminal widget</title>
<updated>2019-06-18T09:22:51+00:00</updated>
<author>
<name>Tamas Nepusz</name>
<email>ntamas@gmail.com</email>
</author>
<published>2019-06-18T09:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/urwid.git/commit/?id=331df4505050b51051c7c29de70f1c84f86ed661'/>
<id>331df4505050b51051c7c29de70f1c84f86ed661</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
