summaryrefslogtreecommitdiff
path: root/docs/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* Python 37+ initial migration (#522)Alexey Stepanov2023-03-3111-79/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()` -> `b''` * `== None` -> `is None` * subclassing of `object` * `super(<Class>`, self>)` ->`super()` * `from __future__ import ...` python3 compatibility imports * `set(<Iterable[Hashable]>)` -> `{<Hashable>}` * partial f-strings conversion * (`IOError`, `select.error`, `socket.error`) -> `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 <alekseis@nvidia.com>
* fix typoCasey Jones2022-07-121-4/+1
| | | "will be have" → "will have"
* Update index.rstAsiel Díaz Benítez2022-07-121-1/+1
| | | fix small typo in tutorial
* Fix typosJakub Wilk2017-02-281-3/+3
|
* docs: remove unused lbscr exampleIan Ward2014-01-0111-39/+0
|
* remove urwid symlinks, use setup.py develop insteadIan Ward2013-12-261-1/+0
|
* tutoral: cmenu.py make cascade max assumption explicitIan Ward2012-10-201-3/+6
|
* tutorial: make example file names match names in tutorialIan Ward2012-10-1941-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --HG-- rename : docs/tutorial/menu4.py => docs/tutorial/adventure.py rename : docs/tutorial/menu4.py.xdotool => docs/tutorial/adventure.py.xdotool rename : docs/tutorial/menu41.png => docs/tutorial/adventure1.png rename : docs/tutorial/menu42.png => docs/tutorial/adventure2.png rename : docs/tutorial/menu43.png => docs/tutorial/adventure3.png rename : docs/tutorial/menu44.png => docs/tutorial/adventure4.png rename : docs/tutorial/menu2.py => docs/tutorial/cmenu.py rename : docs/tutorial/menu2.py.xdotool => docs/tutorial/cmenu.py.xdotool rename : docs/tutorial/menu21.png => docs/tutorial/cmenu1.png rename : docs/tutorial/menu22.png => docs/tutorial/cmenu2.png rename : docs/tutorial/menu23.png => docs/tutorial/cmenu3.png rename : docs/tutorial/menu24.png => docs/tutorial/cmenu4.png rename : docs/tutorial/menu3.py => docs/tutorial/hmenu.py rename : docs/tutorial/menu3.py.xdotool => docs/tutorial/hmenu.py.xdotool rename : docs/tutorial/menu31.png => docs/tutorial/hmenu1.png rename : docs/tutorial/menu32.png => docs/tutorial/hmenu2.png rename : docs/tutorial/menu33.png => docs/tutorial/hmenu3.png rename : docs/tutorial/menu34.png => docs/tutorial/hmenu4.png rename : docs/tutorial/lbcont.py => docs/tutorial/multiple.py rename : docs/tutorial/lbcont.py.xdotool => docs/tutorial/multiple.py.xdotool rename : docs/tutorial/lbcont1.png => docs/tutorial/multiple1.png rename : docs/tutorial/lbcont2.png => docs/tutorial/multiple2.png rename : docs/tutorial/lbcont3.png => docs/tutorial/multiple3.png rename : docs/tutorial/lbcont4.png => docs/tutorial/multiple4.png rename : docs/tutorial/edit.py => docs/tutorial/qa.py rename : docs/tutorial/edit.py.xdotool => docs/tutorial/qa.py.xdotool rename : docs/tutorial/edit1.png => docs/tutorial/qa1.png rename : docs/tutorial/edit2.png => docs/tutorial/qa2.png rename : docs/tutorial/edit3.png => docs/tutorial/qa3.png rename : docs/tutorial/frlb.py => docs/tutorial/sig.py rename : docs/tutorial/frlb.py.xdotool => docs/tutorial/sig.py.xdotool rename : docs/tutorial/frlb1.png => docs/tutorial/sig1.png rename : docs/tutorial/frlb2.png => docs/tutorial/sig2.png rename : docs/tutorial/frlb3.png => docs/tutorial/sig3.png rename : docs/tutorial/frlb4.png => docs/tutorial/sig4.png rename : docs/tutorial/menu1.py => docs/tutorial/smenu.py rename : docs/tutorial/menu1.py.xdotool => docs/tutorial/smenu.py.xdotool rename : docs/tutorial/menu11.png => docs/tutorial/smenu1.png rename : docs/tutorial/menu12.png => docs/tutorial/smenu2.png rename : docs/tutorial/menu13.png => docs/tutorial/smenu3.png
* manual, tutorial: minor updates/fixesIan Ward2012-10-141-25/+24
|
* tutorial: put screen shots firstftr-sphinxIan Ward2012-10-101-51/+53
| | | | | --HG-- branch : feature-sphinx
* tutorial: menu3/4 examples updated and describedIan Ward2012-10-104-41/+61
| | | | | --HG-- branch : feature-sphinx
* tutorial: use exit buttons in menu examplesIan Ward2012-10-108-50/+22
| | | | | --HG-- branch : feature-sphinx
* tutorial: start of menu3 docsIan Ward2012-10-101-17/+41
| | | | | --HG-- branch : feature-sphinx
* tutorial: menu1, menu2 discussionIan Ward2012-10-085-5/+61
| | | | | --HG-- branch : feature-sphinx
* tutorial: minor fixesIan Ward2012-10-081-30/+35
| | | | | --HG-- branch : feature-sphinx
* tutorial:remove top-level sections and shorten example namesIan Ward2012-09-231-30/+22
| | | | | --HG-- branch : feature-sphinx
* docs: move some sections from tutorial to widget manual pageIan Ward2012-09-228-532/+0
| | | | | | | | | | | | --HG-- branch : feature-sphinx rename : docs/tutorial/wanat.py => docs/manual/wanat.py rename : docs/tutorial/wanat_multi.py => docs/manual/wanat_multi.py rename : docs/tutorial/wanat_new.py => docs/manual/wanat_new.py rename : docs/tutorial/wcur1.py => docs/manual/wcur1.py rename : docs/tutorial/wcur2.py => docs/manual/wcur2.py rename : docs/tutorial/wmod.py => docs/manual/wmod.py rename : docs/tutorial/wsel.py => docs/manual/wsel.py
* tutorial: make last menu example more interestingIan Ward2012-09-227-47/+42
| | | | | --HG-- branch : feature-sphinx
* tutorial menu3 new screenshots, update titlesIan Ward2012-09-2112-14/+17
| | | | | --HG-- branch : feature-sphinx
* tutorial: menu3 modern columns-based lookIan Ward2012-09-213-28/+69
| | | | | --HG-- branch : feature-sphinx
* tutorial: work on making menu examples fancier-lookingIan Ward2012-09-1824-21/+70
| | | | | --HG-- branch : feature-sphinx
* tutorial: update edit+button, listbox+listwalker examplesIan Ward2012-09-1810-99/+90
| | | | | --HG-- branch : feature-sphinx
* tutorial: add top-down usage to highcolors exampleIan Ward2012-09-152-24/+46
| | | | | --HG-- branch : feature-sphinx
* tutorial updatesIan Ward2012-09-146-48/+42
| | | | | --HG-- branch : feature-sphinx
* tutorial: update some examples (descriptions to follow)Ian Ward2012-09-0911-36/+46
| | | | | --HG-- branch : feature-sphinx
* docs: start of new tutorial docs, more correctionsIan Ward2012-09-011-18/+50
| | | | | --HG-- branch : feature-sphinx
* manual: finish updating and correcting linksIan Ward2012-08-281-0/+3
| | | | | --HG-- branch : feature-sphinx
* manual: start correcting links, minor text changesIan Ward2012-08-261-3/+3
| | | | | --HG-- branch : feature-sphinx
* tutorial example: menus with parent linksIan Ward2012-08-162-80/+82
| | | | | --HG-- branch : feature-sphinx
* tutorial example: nested menus as widgetsIan Ward2012-08-161-0/+59
| | | | | --HG-- branch : feature-sphinx
* tutorial example: nested menusIan Ward2012-08-161-0/+46
| | | | | --HG-- branch : feature-sphinx
* tutorial: update menu example to follow menu1Ian Ward2012-08-101-7/+8
| | | | | --HG-- branch : feature-sphinx
* tutorial: menu1 exampleIan Ward2012-08-052-3/+29
| | | | | --HG-- branch : feature-sphinx
* tutorial example: use Button subclass+signal instead of our own keypress methodsIan Ward2012-07-241-9/+10
| | | | | --HG-- branch : feature-sphinx
* first draft of menu tutorial exampleIan Ward2012-07-241-0/+76
| | | | | --HG-- branch : feature-sphinx
* tutorial: tidying examples, fix some links and section titlesIan Ward2012-07-228-70/+88
| | | | | --HG-- branch : feature-sphinx
* tutorial: reduce font size so bold is availableIan Ward2012-07-2230-0/+0
| | | | | --HG-- branch : feature-sphinx
* tutorial: update listbox scrolling exampleIan Ward2012-07-2212-10/+11
| | | | | --HG-- branch : feature-sphinx
* fix event/listbox example screenshotsIan Ward2012-07-214-3/+3
| | | | | --HG-- branch : feature-sphinx
* fix edit widget example screenshotsIan Ward2012-07-213-1/+1
| | | | | --HG-- branch : feature-sphinx
* capture tutorial screenshots in 24 bit colourIan Ward2012-07-2114-0/+0
| | | | | --HG-- branch : feature-sphinx
* larger font for tutorial screenshotsIan Ward2012-07-2130-0/+0
| | | | | --HG-- branch : feature-sphinx
* add Makefile for generating tutorial screenshotsIan Ward2012-07-212-2/+3
| | | | | --HG-- branch : feature-sphinx
* tutorial: update examples, fix SelectablePudding, CursorPudding missing ↵Ian Ward2012-07-186-30/+15
| | | | | | | _invalidate calls --HG-- branch : feature-sphinx
* tutorial: fix links to referenceIan Ward2012-07-181-116/+114
| | | | | --HG-- branch : feature-sphinx
* Fix objects referencesmarco giusti2011-12-121-208/+239
| | | | | --HG-- branch : feature-sphinx
* Add screenshots.sh and compile_pngs.shmarco giusti2011-12-0641-2/+32
| | | | | | | Substitute old images with the new ones generated by the new scripts --HG-- branch : feature-sphinx
* Move tutorial filemarco giusti2011-12-041-0/+0
| | | | | | --HG-- branch : feature-sphinx rename : docs/tutorial/wcur.py => docs/tutorial/wcur1.py
* Add tutorialmarco giusti2011-12-0446-5/+922
| | | | | --HG-- branch : feature-sphinx
* Move file to .rst file extensionmarco giusti2011-12-031-0/+0
| | | | | | | | | | | | | | | | | | | | | | --HG-- branch : feature-sphinx rename : docs/index.txt => docs/index.rst rename : docs/manual/canvascache.txt => docs/manual/canvascache.rst rename : docs/manual/displayattributes.txt => docs/manual/displayattributes.rst rename : docs/manual/displaymodules.txt => docs/manual/displaymodules.rst rename : docs/manual/eventloops.txt => docs/manual/eventloops.rst rename : docs/manual/index.txt => docs/manual/index.rst rename : docs/manual/listboxcontents.txt => docs/manual/listboxcontents.rst rename : docs/manual/mainloop.txt => docs/manual/mainloop.rst rename : docs/manual/standardwidgets.txt => docs/manual/standardwidgets.rst rename : docs/manual/textattributes.txt => docs/manual/textattributes.rst rename : docs/manual/textencodings.txt => docs/manual/textencodings.rst rename : docs/manual/textlayout.txt => docs/manual/textlayout.rst rename : docs/manual/userinput.txt => docs/manual/userinput.rst rename : docs/manual/widgetlayout.txt => docs/manual/widgetlayout.rst rename : docs/manual/widgetmethods.txt => docs/manual/widgetmethods.rst rename : docs/reference/index.txt => docs/reference/index.rst rename : docs/tutorial/index.txt => docs/tutorial/index.rst