| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
+ python -m flake8
./examples/demo/demos/combobox.py:212:24: E275 missing whitespace after keyword
|
|
|
|
| |
The examples don't work with gtk4 so set the proper version
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
In the recent cleanup I missed that Python 2 doesn't default to
utf-8 there.
|
|
|
|
|
| |
Only use the _compat aliases and hide them in _compat through eval().
This will make flake8 complain in case any py2 only builtins are used.
|
| |
|
|
|
|
| |
The demo app now gets analyzed by pep8 since it was moved to the examples.
|
|
|
|
|
|
|
| |
We might want to install it in the future, but until then at least put
it into the tarball.
https://bugzilla.gnome.org/show_bug.cgi?id=735918
|
|
|
|
|
|
|
|
|
| |
Two new errors popped up:
* E305 expected 2 blank lines after class or function definition
* E741 ambiguous variable name
https://bugzilla.gnome.org/show_bug.cgi?id=776009
|
|
|
|
|
|
| |
Fix print statements and legacy exception usage in examples.
https://bugzilla.gnome.org/show_bug.cgi?id=731042
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Signal class provides easy creation of signals and removes the
need for __gsignals__ in client code. The Signal class can also be
used as a decorator for wrapping up the custom closure. As well as
providing a "BoundSignal" when accessed on an instance for making
connections without specifying a signal name string.
Python3 annotations can also be used to supply closure argument and
return types when Signal is used as a decorator. For example:
class Eggs(GObject.GObject):
@GObject.Signal
def spam(self, count:int):
pass
https://bugzilla.gnome.org/show_bug.cgi?id=434924
|
|
|
|
|
|
|
|
|
| |
The autogenerated gitignores was missing several files. So we
was using a manual .gitignore at the root. But since it's
enough to add a couple of entries to it to cover the whole
tree, there is no much point in using git.mk at all.
https://bugzilla.gnome.org/show_bug.cgi?id=678192
|
|
|
|
| |
Spotted by current pep8 checker.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=672627
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=672627
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=672627
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=672627
|
|
|
|
|
|
| |
And add a target to make check that runs pyflakes.
https://bugzilla.gnome.org/show_bug.cgi?id=672578
|
|
|
|
|
|
|
|
|
|
|
|
| |
Renamed to match the rest of the class names in GObject and also
not clobber the builtin python property.
Keep the old "property" identifier for backwards compatibility
for now.
https://bugzilla.gnome.org/show_bug.cgi?id=672168
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
|
|
|
|
|
|
|
|
| |
This method was used in gobject initialization at some point, but now
using GObject.__init__() is sufficient, so let's not keep this old
method around and let people misuse it.
https://bugzilla.gnome.org/show_bug.cgi?id=658032
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=654162
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=654162
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=653844
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=638899
|
|
|
|
|
| |
git.mk is a script maintained in pango. From time to time we must
check if it was updated and update it here.
|
|
|
|
|
|
|
|
|
| |
cairo-demo.py and gtk-demo.py need the two (kind of) magic lines
regarding pygtk to work out of the box. So add those.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
https://bugzilla.gnome.org/show_bug.cgi?id=625638
|
|
|
|
|
|
| |
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
https://bugzilla.gnome.org/show_bug.cgi?id=625619
|
|
|
|
|
| |
For reasons outlined at:
http://mail.gnome.org/archives/python-hackers-list/2010-June/msg00009.html
|
|
|
|
| |
svn path=/trunk/; revision=900
|
|
|
|
| |
svn path=/trunk/; revision=899
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-29 Johan Dahlin <johan@gnome.org>
* examples/gio/downloader.py:
* gio/giomodule.c (init_gio):
Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.
svn path=/trunk/; revision=897
|
|
|
|
| |
svn path=/trunk/; revision=896
|
|
|
|
| |
svn path=/trunk/; revision=895
|
|
|
|
|
|
| |
reuse it in a real application
svn path=/trunk/; revision=894
|
|
|
|
| |
svn path=/trunk/; revision=893
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-29 Johan Dahlin <johan@gnome.org>
* examples/gio/downloader.py:
Add a new example
* gio/ginputstream.override:
Use a string internally instead of a PyStringObject when
in read_async. Create a new python string in finish and
honor the number of bytes read.
svn path=/trunk/; revision=892
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-26 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/Makefile.am:
* gio/giomodule.c (init_gio):
* glib/pyglib.c (pyglib_error_check),
(pyglib_register_exception_for_domain):
* glib/pyglib.h:
* tests/test_gio.py:
Add a new API for registering exceptions for a GError domain.
Register a new exception for G_IO_ERROR, update tests
and examples to use the new exception.
svn path=/trunk/; revision=863
|
|
|
|
| |
svn path=/trunk/; revision=834
|
|
|
|
| |
svn path=/trunk/; revision=833
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-19 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.FileEnumerator.next_files_async/next_files_done.
Update the example to use them instead of the synchronous versions,
add documentation and tests.
svn path=/trunk/; revision=832
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-19 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
Only fetch name, saves a couple of syscalls.
* gio/gio.override:
Set name to gio._gio so pychecker/pydoc works.
svn path=/trunk/; revision=831
|
|
|
|
| |
svn path=/trunk/; revision=829
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gio/directory-async.py:
* gio/gfile.override:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.File.enumerate_children_async, add tests, docstring
and an example.
Also document gio.File.enumerate while we're at it.
svn path=/trunk/; revision=828
|
|
|
|
| |
svn path=/trunk/; revision=716
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/properties.py:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/constants.py.in:
* gobject/generate-constants.c: (main):
* gobject/propertyhelper.py:
* tests/Makefile.am:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_properties.py:
Add a property helper, fixes #338098
svn path=/trunk/; revision=662
|