summaryrefslogtreecommitdiff
path: root/urwid
Commit message (Collapse)AuthorAgeFilesLines
* Investigating bug with TwistedEventLoop test on Travis.Andrew Dunai2018-01-171-1/+5
|
* Create the EventLoop abstract class, add documentation for signal handling, ↵Federico T2018-01-081-32/+117
| | | | use Python .gitignore provided by GitHub
* Merge pull request #270 from federicotdn/masterAndrew Dunai2018-01-072-6/+80
|\ | | | | Allow Screen class to set signal handlers using a function provided by the event loop
| * Screen class now sets signal handlers using a function provided by the event ↵Federico T2018-01-052-6/+80
| | | | | | | | | | | | | | | | | | | | loop The Screen class used to set signal handlers using the signal() function from the signal standard library module. This commit changes this behaviour so that the Screen class now uses a function provided by the active event loop to set signal event handlers. This allows us to use GLib specific signal handling functions when using the GLib event loop.
* | Merge pull request #151 from inducer/masterAndrew Dunai2018-01-071-1/+1
|\ \ | | | | | | Fix default screen size on raw display
| * | Fix default screen size on raw displayAndreas Klöckner2015-09-151-1/+1
| | |
* | | Merge pull request #222 from aleufroy/221_fix_fds_release_by_raw_displayAndrew Dunai2018-01-071-3/+1
|\ \ \ | | | | | | | | fix: raw display should release file descriptors (issue #221)
| * | | fix: raw display should release file descriptors (issue #221)Alain Leufroy2017-03-161-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | `raw_display.Screen.hook_event_loop` does not fill `self._current_event_loop_handles` with handled file descriptors. So, `raw_display.Screen.hook_event_loop` can not release then.
* | | | Merge pull request #215 from abadger/linebox-can-omit-sidesAndrew Dunai2018-01-071-26/+71
|\ \ \ \ | |_|_|/ |/| | | Additional linebox functionality
| * | | Correct problem with defining no left line character breaking later widget ↵Toshio Kuratomi2018-01-061-0/+4
| | | | | | | | | | | | | | | | layout
| * | | Additional listbox functionalityToshio Kuratomi2018-01-031-26/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add title_align as a new keyword argument to construct a ListBox. It allows justifying a ListBox to the left or right in addition to centering it. This can be useful for constructing columns out of ListBoxes. * Implement borderless sides. If a ListBox is created with lines or corners set to the empty string then do not create a border element for them. This allows adjoining list boxes to share a single border, or two ListBoxes to seamlessly merge into one another. Fixes #211
* | | | Merge pull request #175 from rr-/patch-1Andrew Dunai2018-01-041-4/+4
|\ \ \ \ | | | | | | | | | | Correct error messages in Filler
| * | | | Correct error messages in DecorationMarcin Kurczewski2016-02-141-4/+4
| | | | | | | | | | | | | | | The error message talks about conditions for `fixed bottom` argument to be valid, when the argument is set to `fixed top`. This doesn't seem right.
* | | | | 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
| |/ / |/| |