Commit Graph

296 Commits

Author SHA1 Message Date
Davide Andreoli 94863fa02a Python-EFL: update to recent evas enum change
Isn't this an API break ?? :/

kuuko: why some enums here still have explicit values? and why
they are not copyed in efl.evas.pyx ?
2013-05-29 22:17:05 +02:00
Davide Andreoli 25666b60c2 Python-EFL: in the edje_edit unittest copy the edj file to a temp one, as the test will change it. Preventing successive test to fail. 2013-05-29 21:52:44 +02:00
Davide Andreoli fd131a2b69 Python-EFL: @on_event(event_name) decorator for Emotion 2013-05-14 23:13:26 +02:00
Davide Andreoli 5913721de9 Python-EFL: implemented decorators for edje.
Decorators implemented in a much more simple and generic
way than before, we can use them in other place too.

3 deco implemented:
@on_signal(emission, source)
@message_handler
@on_text_change

I choosed the 'strange' on_* naming convention to not
clash/confuse with normal callback functions, tell
me if you don't like.
2013-05-14 21:51:29 +02:00
Davide Andreoli 236d66caf8 Python-EFL: rename examples, just to keep them ordered 2013-05-13 01:29:44 +02:00
Davide Andreoli 1c255024d3 Python-EFL: implemented ecore.Poller, with docs and unittest. 2013-05-13 01:27:00 +02:00
Davide Andreoli fcac9e23ad Python-EFL: docs for ecore.FileMonitor 2013-05-12 20:08:31 +02:00
Davide Andreoli 39e16242a0 Python-EFL: implemented ecore.FileMonitor class 2013-05-12 19:15:09 +02:00
Davide Andreoli 6e221b54c5 Python-EFL: espionage: more unicode fun 2013-05-09 20:18:57 +02:00
Davide Andreoli 770f4d3456 Python-EFL: add documentation for the dbus main loop integration 2013-05-09 20:17:58 +02:00
Kai Huuhko 94896f625d Complete renaming edbus -> eldbus. 2013-05-06 22:36:09 +03:00
Davide Andreoli bee7a39575 Python-EFL: espionage: new option to prettify the returns of methods 2013-05-05 18:33:52 +02:00
Davide Andreoli 73d49c134a Python-EFL: espionage: add an option to hide the internal dbus introspection interfaces. 2013-05-05 18:00:12 +02:00
Davide Andreoli 294bbda78b Python-EFL: espionage: double-clink on a property to fetch the value 2013-05-05 17:39:19 +02:00
Davide Andreoli 1c261835d5 Python-EFL: espionage: can now execute methods, with arguments too. 2013-05-05 16:41:14 +02:00
Kai Huuhko 7b77e37b8c Add an example for installing to a custom prefix to the INSTALL file and
drop the Cython required version to 0.17.0.
2013-05-04 17:18:54 +00:00
Davide Andreoli 9b165b8b79 Python-EFL: test_dbus_spy.py (aka espionage) improvements
* Show the params and returns (with name and type) in methods and signals items
 * Show type and access (rw, ro) in properties items
 * Sort better the list of properties, methods and signals
2013-05-04 15:51:20 +02:00
Davide Andreoli 2b7a9c7030 Python-EFL: follow the eldbus rename. 2013-05-01 23:13:26 +02:00
Davide Andreoli cc65c1cf40 Python-EFL: unbreak compilation with cython 1.7.3 2013-05-01 22:57:01 +02:00
Kai Huuhko 5a1180d1a0 Elementary: Initial support for copy & paste. selection_get/set/clear
works with Entry and has a test, the generic drop_cb is unfinished and
untested.
2013-05-01 15:49:57 +00:00
Kai Huuhko c14ab47b09 Elementary: Add a few simple methods that were added to C API recently. 2013-05-01 15:49:57 +00:00
Kai Huuhko fa8e942762 Documentation: Position the widget example images so they are more
naturally in context with the description text.
2013-05-01 15:49:57 +00:00
Kai Huuhko 7cc49e8002 Documentation: Add toctree maxdepth to keep the index page small. 2013-05-01 15:46:32 +00:00
Kai Huuhko 75cfdd1db7 Elementary: Add GestureLayer test to the main list of tests. 2013-05-01 15:45:26 +00:00
Kai Huuhko 3072f93a83 Elementary: Add an incomplete scrolled entry test. Needs the filter cbs
implemented.
2013-05-01 15:45:26 +00:00
Kai Huuhko 6c89e84620 Elementary: Change the rest of the widgets to use the new item handling
style, and make the documentation more structured.
2013-05-01 15:45:26 +00:00
Kai Huuhko 3b40ac6997 Update TODO. 2013-05-01 15:25:19 +00:00
Kai Huuhko 63000ba25c Elementary: Add missing Illume command constant values to Window,
improve its documentation and silence some Cython warnings by making the
methods cpdef.
2013-05-01 15:25:19 +00:00
Kai Huuhko de6fd9f832 Elementary: Use genlist_item_class functions to manage the class struct,
improve item handling by using class attributes instead of the params
tuple.
2013-05-01 15:24:42 +00:00
Kai Huuhko d2a6f8a94c Elementary: Split genlist into more easily manageable files, it still
compiles into one module.
2013-05-01 15:24:42 +00:00
Kai Huuhko dc1a54dec3 Elementary: Improve Genlist documentation. 2013-05-01 15:24:42 +00:00
Kai Huuhko 94df82ad33 Eo: Python objects should not be manipulated in __cinit__ and
__dealloc__ methods. Initializing them *seems* to be safe though.

And there's no need to initialize either the C objects to NULL nor
python objects to None, this gets done automatically by Cython, along
with initializing integers to 0.
2013-05-01 15:24:42 +00:00
Kai Huuhko c9d3cc4536 Elementary: Fix the legacy genlist item factory functions that were
left broken in last pull/rebase/conflict resolution.
2013-05-01 15:24:42 +00:00
Kai Huuhko ab91f97961 Elementary: Add special methods that allow iterating natively over a Genlist
eg:

    for item in genlist:
        print(item)
2013-05-01 15:24:41 +00:00
Kai Huuhko d3cd5a4239 Eo: Add a boolean special method which does the same (opposite) as is_deleted().
Now you can write:

    if not my_obj:
        raise VeryBadError("My object is gone!")

and:

    if my_obj:
        my_obj.manipulate()

instead of:

    if my_obj.is_deleted()
        raise ErrorBadVery("Where did it go?")

and:

    if not my_obj.is_deleted():
        my_obj.manipulate()

But really, we should add NULL checks all over the place instead of
having the end developers checking for it.
2013-05-01 15:05:08 +00:00
Davide Andreoli 01663ecd99 Python-EFL: trivial docs change, be consistent with header types, no code changes 2013-05-01 14:34:45 +02:00
Davide Andreoli f4fe41073f Python-EFL: docs dark theme improvement
* redone main layout to let the footer expand
 * trying an icon for efl+python...let see
2013-05-01 14:05:14 +02:00
Davide Andreoli 1faa12996d Python-EFL: improved dark theme for docs
* done matching footer and header
 * quite good now... I leave it as the default one :)
2013-05-01 00:03:40 +02:00
Davide Andreoli 8219a6a52b Python-EFL: Check the minimum cython version 2013-04-28 15:53:09 +02:00
Davide Andreoli 9d167fdf66 PythonEFL: my py2.7 dont like the exec() inside a lambda. 2013-04-23 22:35:52 +02:00
Kai Huuhko e0e2cb81ce Elementary: Fix Toolbar states. 2013-04-22 20:20:21 +03:00
Kai Huuhko 724b999095 Ecore: Optimizations. 2013-04-22 20:20:21 +03:00
Kai Huuhko 1753d43b7d Elementary: Add some magic to examples so it imports the individual
tests on demand.
2013-04-22 20:20:21 +03:00
Kai Huuhko f38a3145d1 Silence some compiler warnings. 2013-04-22 20:20:21 +03:00
Kai Huuhko 15bb88021c Elementary: Improve Image documentation. 2013-04-22 20:20:21 +03:00
Kai Huuhko fd7322fcda Disallow instantiating the base object classes. 2013-04-22 20:20:21 +03:00
Kai Huuhko 4f8256a793 Elementary: Add the new translatable text functions. 2013-04-22 20:20:21 +03:00
Kai Huuhko 9bdd51215b Elementary: Add Flip.go_to() and improve documentation. 2013-04-22 20:20:21 +03:00
Kai Huuhko 0c9f6c7590 Elementary: Add Calendar.marks (get/del only) and improve documentation. 2013-04-22 20:20:21 +03:00
Kai Huuhko e5e82619d5 Elementary: Add trivial methods/properties to label/mbentry/notify. 2013-04-22 20:20:21 +03:00