| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Bug #594347.
|
|
|
|
|
|
|
| |
Add read-only float attributes for hue, saturation and value of a
color. Add a function to create a color objects out of HSV
components. Add unit tests and document new features. Part of bug
546019.
|
|
|
|
|
|
| |
Make constructor accept floating-point arguments. Add 'red_float',
'green_float' and 'blue_float' read-write properties. Test and
document new features. Part of bug #546019.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 526189 – add __str__ and/or __repr__ to several types
* gtk/gdk.override (_wrap_gdk_cursor_tp_repr): New function.
* gtk/gdkcolor.override (pygdk_color_to_string_smart)
(_wrap_gdk_color_tp_repr, _wrap_gdk_color_tp_str): New functions.
* gtk/gdkevent.override (_wrap_gdk_event_tp_repr): New function.
* gtk/gdkrectangle.override (_wrap_gdk_rectangle_tp_repr): New
function.
* tests/test_color.py (Tests.test_repr, Tests.test_str): New tests.
(Tests._test_color_list): New helper method.
* tests/test_rectangle.py (Tests.test_repr): New test.
(Tests._test_rectangle_list): New helper method.
2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net>
* pygtk-gdkrectangle.xml: Document __repr__.
* pygtk-gdkcolor.xml: Document __repr__ and __str__.
* pygtk-gdkevent.xml: Document __repr__.
svn path=/trunk/; revision=3029
|
|
2008-08-02 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 527212 – types with well-defined equality semantics are not
properly comparable
* gtk/gdk.override (_wrap_pygdk_region_tp_richcompare): New
function.
* gtk/gdkcolor.override (_wrap_gdk_color_tp_richcompare): New
function.
* gtk/gdkrectangle.override (_wrap_gdk_rectangle_tp_richcompare):
New function.
* tests/test_conversion.py (testColorCreation): Move to thematic
test file.
* tests/Makefile.am:
* tests/test_color.py:
* tests/test_rectangle.py: Two new test files.
2008-08-02 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 527212 – types with well-defined equality semantics are not
properly comparable
* pygtk-gdkcolor.xml: Document new constructor option. Document
proper comparison as of PyGTK 2.14.
* pygtk-gdkregion.xml: Document proper comparison as of PyGTK
2.14.
* pygtk-gdkrectangle.xml: Document proper comparison as of PyGTK
2.14.
svn path=/trunk/; revision=3014
|