summaryrefslogtreecommitdiff
path: root/urwid
Commit message (Collapse)AuthorAgeFilesLines
* Python dual support (#266)Andrew Dunai2018-01-0432-148/+281
| | | | | | | | | | | | | | | | | | | | * WIP * Metaclasses * String literal fixes * Remove 2to3 and make tests compatible with both Python 2 & 3 * Removed debug code. * Added tests for ProgressBar * Fixed examples. * future division & font literals fix * Cleaner fonts initialization.
* Merge pull request #269 from rndusr/feature/listbox-home-endAndrew Dunai2018-01-041-1/+16
|\ | | | | Feature/listbox home end
| * Merge branch 'feature/listbox-home-end'Random User2018-01-031-1/+16
| |\
| | * Add support for keys 'home' and 'end' to ListBoxRandom User2017-04-291-1/+16
| | | | | | | | | | | | | | | Pressing 'home' moves the focus to the first position, 'end' moves focus to the last position.
* | | Merge pull request #176 from rr-/patch-2Andrew Dunai2018-01-041-3/+7
|\ \ \ | | | | | | | | Correct Edit documentation
| * | | Correct Edit documentationMarcin Kurczewski2016-02-141-3/+7
| | | | | | | | | | | | There were missing doc comments for a few basic properties, + the text about `edit_text` property being a read-only property was a lie.
* | | | Merge pull request #214 from abadger/fix-edit-change-signalAndrew Dunai2018-01-032-7/+24
|\ \ \ \ | |_|/ / |/| | | Emit postchange after text is updated
| * | | checkbox and radiobutton also needs to have a postchange eventToshio Kuratomi2017-01-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like Edit() boxes, CheckBox and RadioButton need to have an event emitted after the change has been commited. This allows us to modify the state after it occurs. (If the event only fires before the state is actually changed, the event handler cannot change the state because the emitter will change it to what they were going to after the event handler has finished.
| * | | Implement postchange signal for Edit widget.Toshio Kuratomi2017-01-211-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Edit widget in 1.3.0 has a "change" signal which fires before the edit_text is updated. This means that change signal handlers cannot update the edit_text; the text is updated by the signal emitter after the change handler has finished running. To remedy this, in a backwards compatible way, create a second signal, "postchange" which fires after edit_text has been changed. "postchange" sends the widget's old text value as a parameter so that change handlers can use the former value if needed (for instance, to revert a change because the new_text was invalid)
| * | | Do not emit change until after text is updatedToshio Kuratomi2017-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes an Edit's change handler wants to edit the text that has just been entered. For instance, if the handler does validation, it may want to immediately highlight or prevent invalid entries from being shown. This is not possible if the change signal is emitted before the internal text data is updated as the update will overwrite anything that the change handler performed. Emitting the change event after the update has been performed allows for changes to be made. Fixes #212
* | | | Support for new foreground setting "strikethrough"Christian Geier2018-01-022-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | If you are unsure if your terminal supports this, try the following: echo -e "\e[9mstrikethrough\e[0m"
* | | | Merge pull request #220 from jwilk-forks/masterAndrew Dunai2018-01-021-1/+1
|\ \ \ \ | | | | | | | | | | Fix typos
| * | | | Fix typosJakub Wilk2017-02-281-1/+1
| | | | |
* | | | | ListBox: Modify inside docs of `keypress` method. (#257)xndcn2018-01-021-5/+4
| | | | | | | | | | | | | | | Since from f5f6711 now `page up` and `page down` will be also handled by widget in focus, so the documents inside the `keypress` method have to be modified to avoid confusing.
* | | | | Fixed issue with Unicode characters in ProgressBar (#261)Andrew Dunai2018-01-021-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed issue with unicode characters in ProgressBar * Fixed Travis build - replaced deprecated 3.2_with_system_site_packages with 3.4_with_system_site_packages. * Fixed typo. * Fixing build for Python 3.2 * Fix for Python 3.2 & tornado/twisted * Setup script update in regards to #216 * Travis fix * Dependencies for Travis * Removed Python 3.2 from Travis dependency list as deprecated * Regression fix. * Removed bogus lines. * Docs.
* | | | | Merge pull request #243 from Sjc1000/masterIan Ward2017-08-221-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fixed Terminal widget crashes with Python3
| * | | | | Fixed Terminal widget crashes with Python3Sjc10002017-07-181-1/+1
| | | | | |
* | | | | | Merge pull request #249 from Lothiraldan/cleaningIan Ward2017-08-221-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Small style cleaning of ParentNode.set_child_node
| * | | | | | Small style cleaning of ParentNode.set_child_nodeBoris Feld2017-08-211-2/+2
| | | | | | |
* | | | | | | Fix #246, fix #234Dave Jones2017-08-201-4/+7
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjusts the internal representation of an alarm in SelectEventLoop to include a "tie-break" value prior to the callback (as recommended in the heapq documentation) to prevent TypeError when comparing two different callbacks. Also tweaks SelectEventLoop to use heapq.heappop instead of list.pop for retrieving the next alarm, to maintain the heap structure of the alarm list.
* | | | | | fixed docstring typomobyte02017-07-261-1/+1
|/ / / / /
* | | | | Merge pull request #237 from floppym/test-vterm-EINTRIan Ward2017-07-041-2/+10
|\ \ \ \ \ | | | | | | | | | | | | test_vterm: handle EINTR when reading from pipe
| * | | | | test_vterm: handle EINTR when reading from pipeMike Gilbert2017-06-031-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: https://github.com/urwid/urwid/issues/230
* | | | | | Merge pull request #238 from mwhudson/issue-164Ian Ward2017-06-071-3/+8
|\ \ \ \ \ \ | |/ / / / / |/| | | | | fix test_remove_watch_file flakiness
| * | | | | fix test_remove_watch_file flakinessMichael Hudson-Doyle2017-06-071-3/+8
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | pass a known-good file descriptor to watch_file rather than hard-coding 5 Fixes #164
* | | | | Merge pull request #207 from zrax/SimpleFocusListWalker_modifiedIan Ward2017-05-241-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix missing `modified` signal in SimpleFocusListWalker
| * | | | | Fix missing `modified` signal in SimpleFocusListWalkerMichael Hansen2016-11-111-0/+1
| | | | | |
* | | | | | ListBox: Offer page up/down keys to focused widgetRandom User2017-05-171-4/+3
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | Child widgets of ListBoxes get all keys before ListBox uses them, including 'page up' and 'page down'.
* | | | | Default to SimpleListWalker when setting ListBox.bodyRandom User2017-04-241-1/+1
| |_|/ / |/| | | | | | | | | | | PollingListWalker is deprecated.
* | | | correct spelling mistakesEdward Betts2017-02-224-9/+9
| |/ / |/| |
* | | Merge pull request #210 from rndusr/listbox-body-propertyIan Ward2016-12-211-57/+69
|\ \ \ | |/ / |/| | Make ListBox.body an invalidating property
| * | Use internal '_body' attribute instead of new 'body' propertyRandom User2016-12-211-52/+52
| | | | | | | | | | | | This should be slightly more efficient.
| * | Make ListBox.body a propertyRandom User2016-12-211-5/+17
| | | | | | | | | | | | | | | This lets us automatically call _invalidate() each time the list box's body is set.
* | | fix iterator in WidgetContainerListContentsMixinMarlox2016-08-151-2/+2
|/ / | | | | | | | | (x)range is an iterable __iterator__ should return an iterator (iter(iterable))
* | Merge pull request #122 from ids1024/masterIan Ward2016-06-092-6/+11
|\ \ | | | | | | Implement italics support
| * | Implement italics supportIan D. Scott2015-04-192-6/+11
| | |
* | | Fix string formatting errorJakub Wilk2016-05-271-1/+1
| |/ |/|
* | vterm: Fix handling of NUL charactersaszlig2016-02-112-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the VT100 programmers manual, the NUL character has to be ignored (at least on our side, because we are not a printer): http://vt100.net/docs/tp83/appendixb.html According to the bug reporter the VMS console driver inserts NUL characters after line feeds and our implementation prints those as "?". Tested against Python 2.7, 3.2, 3.3, 3.4 and 3.5. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Reported-by: Robert Urban <urban@unix-beratung.de>
* | fix #172 - html_fragment errors on Python 3.4Michael Keirnan2016-02-051-0/+2
| |
* | Merge pull request #158 from benjamin9999/fbtermIan Ward2015-11-011-8/+18
|\ \ | | | | | | 256-color support for fbterm
| * | Add 256-color support for fbtermBenjamin Yates2015-10-181-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fbterm supports an analog of xterm's 256 color method, but due to overlap in the control codes, it uses different escape sequences. Since urwid doesn't use terminfo, it has to be coded in the raw_display directly. The call to register_palette_entry() during __init__ was moved because it now relies on the self.term attribute, and was previously being invoked before the class was fully initialized.
| * | Store envron's TERM value as a Screen attributeBenjamin Yates2015-10-181-4/+4
| | |
* | | drop -dev from 1.3.1Ian Ward2015-11-011-1/+1
|/ /
* | fixes https://github.com/wardi/urwid/issues/96Esteban null2015-09-201-1/+1
| |
* | Reset screen to original state on any exception.Rian Hunter2015-09-061-2/+2
| | | | | | | | | | | | | | | | | | In MainLoop._run() we were running self.event_loop.run() in an exception frame so that we could reset the screen in the case of an unclean shutdown of the MainLoop. The catch specification was "except Exception as e" but this doesn't include exceptions that don't derive from Exception, like KeyboardInterrupt (i.e. Ctrl-C). This change fixes that.
* | A better fix for #127 and #60, added self.flush() instead of carriage returnJared Winborne2015-07-021-2/+2
| |
* | fix for #127 Added a \r for the screen to be properly restored after ↵Jared Winborne2015-06-291-1/+2
| | | | | | | | screen.stop()
* | Merge pull request #88 from hkoof/fix-bargraph-hlinesIan Ward2015-04-211-0/+1
|\ \ | |/ |/| fix hlines in BarGraph.set_data(): sort descending
| * fix hlines in BarGraph.set_data(): sort descendingHeiko Noordhof2014-11-041-0/+1
| |
* | Add bracketed paste mode escape sequencesTom Dryer2015-04-121-0/+2
| | | | | | | | | | | | Add [bracketed paste mode](https://cirw.in/blog/bracketed-paste) escape sequences to escape.py so urwid can pass these sequences to applications as "begin paste" and "end paste" keys.