Commit Graph

254 Commits

Author SHA1 Message Date
Davide Andreoli b71a0af896 Add a new example for win main_menu 2015-01-23 20:37:04 +01:00
Davide Andreoli 6ac80225fb Improve a bit the Window test 2015-01-23 20:07:50 +01:00
Davide Andreoli e44d8b176b Genlist: new test for reorder mode 2015-01-19 23:44:27 +01:00
Davide Andreoli ea60044620 Just for fun: port of the Transit Bezier test
...for fun and to prove the python-efl power,
the test is half the size of the C version
2015-01-17 20:05:40 +01:00
Davide Andreoli 28d1e6853e New 1.13 property elm.Table.align
And small improvements to the table test
2015-01-17 17:47:58 +01:00
Davide Andreoli fe39fcc5e6 Some work on Transit test 2015-01-17 15:59:12 +01:00
Davide Andreoli c1aeafd2e1 GengridItem: no more need to implement tooltip/cursor functions
They are yet implemented in ObjectItem, that is the base class for GengridItem
2015-01-14 21:49:06 +01:00
Davide Andreoli be323e24bc GenlistItem: no more need to implement tooltip/cursor functions
They are yet implemented in ObjectItem, that is the base class for GenlistItem
2015-01-14 21:37:17 +01:00
Davide Andreoli 18a334763f Fix the input_events test 2015-01-05 12:42:48 +01:00
Davide Andreoli 2f8b122110 Fix (workaround) the label test
ELM_WRAP_CHAR make the label expand too much horizontaly,
makeing the window super-high, using ELM_WRAP_WORD fix it.
2015-01-05 12:37:15 +01:00
Davide Andreoli de01f76650 Evas: better define for EVAS_HINT_FILL/EXPAND
Also added the various tuple we always use, just for convenience.

Use the new tuples in the elm examples
2015-01-05 12:24:19 +01:00
Davide Andreoli 64c1d33c9f Added new convenience class: DialogWindow
With a new test for both StandardWindow and DialogWindow
2015-01-03 14:51:08 +01:00
Davide Andreoli 08170d1fd4 Disable evas.SmartObject to workaround Cython brakage.
SmartObject do work fully in real, thay probably need a full rewrite,
so this should not harm at all.

Also disabled tests and examples
2015-01-02 13:25:44 +01:00
Davide Andreoli 9b50d34db3 New test for standard icons 2014-12-31 12:42:38 +01:00
Davide Andreoli 5e8a644f24 New 1.12 API: elm_fileselector_current_name_set/get
With proper test
2014-11-22 15:11:23 +01:00
Davide Andreoli 3be938511f New 1.12 API: elm_panel_scrollable_set/get/content_size_set
Also improved the test for panel and added a new test for scrollable panel.
2014-11-22 14:33:47 +01:00
Kai Huuhko 953a77dcaf Examples: set hoversel text in a callback 2014-09-17 22:21:50 +03:00
Kai Huuhko 5543852d54 Examples: Add description to elm web exceptions, trivial updates to test 2014-09-13 18:16:17 +03:00
Davide Andreoli a4d321dacc Gengrid: new property reorder_type, with test for reorder mode 2014-08-01 18:14:55 +02:00
Davide Andreoli f5dd70b70f Gengrid: implemented search_by_text_item_get(), with a proper test 2014-08-01 17:31:09 +02:00
Davide Andreoli d8174aea3d Genlist: implemented search_by_text_item_get(), with a proper test 2014-08-01 16:31:24 +02:00
Davide Andreoli 401145f4fa Toolbar: new un/selected signals, with tests 2014-08-01 13:35:50 +02:00
Davide Andreoli a97e61dd4f Ctxpopup: new getters for items and the item_prepend method, with tests 2014-07-31 22:18:41 +02:00
Davide Andreoli 1af5adb8cd Panes: new content_[left/right]_min_[relative]_size properties 2014-07-31 17:01:53 +02:00
Davide Andreoli 4f1efb1ee1 Use a more eflish code style (still pep-8 compliant) 2014-06-02 20:37:15 +02:00
Kai Huuhko 3f0aea9cb6 Examples: Elementary test.py pep-8 (formatting) cleanup 2014-06-02 20:17:28 +03:00
Kai Huuhko 5045352434 Evas: Add NULL safety to SmartObject callbacks, exposes a BUG
Apparently the Python instance gets deleted before the smart hide/del
callbacks are called (by eo callback?).
2014-06-02 09:18:01 +03:00
Kai Huuhko 6431873fcd Elementary: Add more signals to web example 2014-05-29 19:43:12 +03:00
Kai Huuhko 9ba009c46a Elementary: Add an example for sys_notify 2014-05-29 01:39:09 +03:00
Kai Huuhko 1466ea7207 efl.ecore: Return of ecore.x (from python-ecore)
Made some corrections to make it compile and fixed doc formatting.
2014-05-13 17:59:48 +03:00
Kai Huuhko 451d49d731 Examples: Fixed elm.popup duplicate function names 2014-04-15 21:43:32 +03:00
Kai Huuhko 6408f8d318 Code cleanup: Print statements => functions 2014-04-14 02:32:16 +03:00
Kai Huuhko ae64f89ab5 Code cleanup: Trailing semicolon in the statement 2014-04-14 01:46:39 +03:00
Kai Huuhko 80f5bb3fa7 Code cleanup: List creation could be rewritten as a list literal 2014-04-14 01:40:22 +03:00
Kai Huuhko 6fc195858e Code cleanup: Assignment can be replaced with augmented assignment 2014-04-14 01:40:22 +03:00
Davide Andreoli de154b7930 Python-EFL: New 1.9 API: Naviframe.title_enabled (title_visible deprecated) 2014-03-01 16:35:20 +01:00
Davide Andreoli 9f6cf51f80 Python-EFL: new 1.9 API: Layout.content_swallow_list_get() 2014-03-01 14:23:42 +01:00
Davide Andreoli 32448918f6 Python-EFL: new 1.9 API Multibuttonentry.format_function_set()
Sadly this add 2 new points of reference leaks :(
2014-02-27 22:38:04 +01:00
Davide Andreoli c2a34f20ad Python-EFL: Colorselector new 1.9 API 2014-02-27 20:52:10 +01:00
Davide Andreoli 1bfb4d8922 Python-EFL: added 1.9 API: Colorselector.palette_items_get() 2014-02-26 23:20:04 +01:00
Davide Andreoli 684aee077e Python-EFL: Fileselector 1,9 API additions.
* added property thumbnail_size
* added function custom_filter_append
* splitted the 3 tests in 3 different files
* test rewritten to better match the C one.

NOTE: custom_filter_append is leaking...need to find a proper way to unref
          Added a note in the TODO for this issue.
2014-02-26 21:37:04 +01:00
Davide Andreoli dd3bc98c93 Python-EFL: add API Label.slide_speed. With tests 2014-02-23 16:29:31 +01:00
Davide Andreoli 04734af9f4 Python-EFL: added new tooltip movement freeze API
* tooltip_move_freeze_push()
* tooltip_move_freeze_pop()
* tooltip_move_freeze_get()
2014-02-23 14:18:19 +01:00
Davide Andreoli 9b78f1fc42 Python emotion test: port all the changes done recently in the C test.
* updated theme file
* new volume slider
* renamed speed slider to alpha slider
* fix alpha slider to work only on the video, not the whole frame
* fix calculation of displayed time
* new option: --position
* new option: --loop
* updated engines list
* new option: --reflex
2014-02-23 13:17:36 +01:00
Kai Huuhko b21fde2ba7 Silence warnings in Cython 0.20 2014-01-24 22:52:34 +02:00
Davide Andreoli 445211f369 add new Mapbuf.point_color_set/get functions (since 1.9) 2014-01-08 22:48:27 +01:00
Davide Andreoli bd063f0ece add new Filesector.sort_method property (since 1.9) 2014-01-08 22:06:29 +01:00
Davide Andreoli fdb66d75e6 add new Clock.pause property (since 1.9) 2014-01-08 21:17:57 +01:00
Davide Andreoli 44a5dd89c0 fix imports in elm tooltip example 2014-01-06 14:36:49 +01:00
Davide Andreoli cabc442195 Try to fix evas SmartObject
* implemented a test for smart obj
* remove comments from factories methods
* install the metaclass also for the Clipped one

Smart object implementation is still broken :(
Every object segfault on delete, the reason is
the eo del callback called BEFORE the smart
delete function. need to investigate better.
2014-01-06 12:40:59 +01:00
Davide Andreoli cacde3e38a unbroke the emotion example
* copy the theme edj in source, instead of searching for an installed
one from the c example, that is not installed by default enymore.
* fix usage/import of enums
* add the 'p' key to toggle pause state
2013-12-23 21:34:16 +01:00
Davide Andreoli 9089706286 Python-EFL: 5 new tests about Focus.
Also add some missed values to Elm_Object_Focus_Direction enum.
2013-12-16 21:42:27 +01:00
Kai Huuhko d84fc043ea Elementary: Fixed test.py mirror mode toggle 2013-12-07 15:59:59 +02:00
Kai Huuhko 7fbc6b83e6 Elementary: Removed use of deprecated methods in examples. 2013-12-07 10:28:08 +02:00
Kai Huuhko 0789bef048 Elementary: Convert the two remaining calendar examples. 2013-12-06 11:49:39 +02:00
Kai Huuhko ab036dd80b Elementary: Fix clock example 2013-12-06 11:47:28 +02:00
Kai Huuhko 2fdaaf2957 Elementary: Disable dnd example 2013-12-06 03:45:34 +02:00
Kai Huuhko 602d030137 Elementary: Fix mistakes in configuration example. 2013-12-05 11:32:42 +02:00
Davide Andreoli 0a03a272e7 Python-EFL: unify all the 3 map tests in one 2013-12-04 21:31:55 +01:00
Kai Huuhko c0ef792ca8 Elementary.slider: Add property step 2013-11-29 02:22:36 +02:00
Kai Huuhko 603476f176 Elementary.web: Add many things missing from API, not tested.
I won't be able to test this until I get Elm compiled with efl-webkit,
and for that I need a reasonably fresh source snapshot.

Latest one I could find was from August last year, I'm assuming it
won't match with current Elm.
2013-11-28 07:17:07 +02:00
Kai Huuhko 44ea5ef086 Elementary: Fix issues in examples, including segfault in config example
It seems socket image windows size and pos should not by manipulated
before calling socket_listen().

Removed several remaining uses of enums from package namespace.
2013-11-28 00:31:41 +02:00
Kai Huuhko cfd74a40e9 Elm: Update main test to be more like C test and add more table examples 2013-11-27 21:08:45 +02:00
Kai Huuhko 4e6d58301d Elementary: Fix Icon example to match the changes made C example.
Thanks SeoZ!
2013-11-26 17:34:39 +02:00
Kai Huuhko 75ee95a7d6 Elementary: Improve input event example.
- prevent focusing the log entry or the clear button widgets
 - move log entry widgets cursor to end when it changes
 - set weight size hints to allocate more space for log entry widget
 - clarify the output messages
2013-11-26 02:37:46 +02:00
Kai Huuhko feaeb7a468 Elementary: Use filter callback to handle the entry text in input example 2013-11-25 23:07:31 +02:00
Kai Huuhko 4b95a88618 Elementary.entry: Clean up the utf8 <-> markup API 2013-11-25 23:07:23 +02:00
Kai Huuhko d7cef5a697 Elementary: Add an example for input events. 2013-11-25 20:52:54 +02:00
Kai Huuhko 3a26675680 Elementary: Convert more of the C DnD examples to Python. 2013-11-19 21:42:24 +02:00
Kai Huuhko 738a377a78 Elementary: Fix a couple of issues in edje external examples.
Include the source file too. It would be best to get rid of the binary
edje file and automate compiling/cleaning it.
2013-11-19 21:21:03 +02:00
Davide Andreoli 012b89076d PythonEFL: new elm test for Theme 2013-11-16 13:15:18 +01:00
Nathan Jervis 7896899abc Elementary: Fix the number of seconds in a day in calendar examples. 2013-11-09 11:49:06 +02:00
Kai Huuhko 91f6ce7ea8 Elementary: Add a call to need_efreet to the map examples.
This is required for the proper cache path to be found.
Otherwise it's created under cwd/(null)
2013-11-08 06:03:15 +02:00
Kai Huuhko af72b465e2 Elementary: Fix small issues in examples 2013-11-07 13:05:14 +02:00
Kai Huuhko a261a2bb69 Elementary: Add Slider example, fixed minor issues in others 2013-11-04 07:07:17 +02:00
Kai Huuhko cf1f98bbf6 Elementary: Improve the rest of the examples.
Summary of changes:

 - Make use of constructor keyword args
 - Most scripts are now working directory agnostic
 - Enabled evas textgrid example
 - Printed messages are slightly better formatted
2013-11-03 10:42:50 +02:00
Kai Huuhko 1f74676a1b Elementary: Comment out couple more accessibility stuff 2013-11-02 16:39:18 +02:00
Kai Huuhko a2364dba2c Elementary: Examples, part N.
"We're doing it, we're doing it! Stop being so testy."

  - Vincent Price as The Sinister Man, addressing Satan.
2013-11-02 02:10:56 +02:00
Kai Huuhko 944234bccd Elementary: Examplifying examples. 2013-11-01 01:52:48 +02:00
Kai Huuhko 39598ed1f7 Elementary: More work on the examples. 2013-10-30 11:36:54 +02:00
Kai Huuhko b3f501b387 Elementary: Start making examples more examplary. 2013-10-30 04:28:55 +02:00
Kai Huuhko d6d440c3a6 Add support for loggers that have been initialized already.
This allows module initialization to be logged as well.

Changed add_logger to return the logger object instead of int.
2013-10-26 03:22:47 +03:00
Kai Huuhko 3d85286336 Add arguments 'version' and 'message' to DEPRECATED decorator.
The decorator will automatically add a directive to the docstring and
log a message when the function is called.
2013-10-25 02:09:29 +03:00
Kai Huuhko b981ce3840 New feature: Set properties using constructor keyword arguments.
Only applied to Elm Bubble for now as an example.
2013-10-20 14:34:53 +03:00
Kai Huuhko 87ee22d559 Elementary: DnD work
- Genlist default animation test functional
 - Some callbacks are still missing
2013-10-10 05:42:39 +03:00
Kai Huuhko afe11df636 Elementary: Beginnings of Drag and Drop support, very much work in progress. 2013-10-08 17:13:32 +03:00
Kai Huuhko 6299a6c8ae Elementary: Make inheriting from scrollable a responsibility for the user. 2013-10-08 09:11:12 +03:00
Kai Huuhko fa9e96dff9 Elementary: Add a test for Access.
Change internal only GenlistItem.itc to readonly item_class
2013-10-04 15:11:57 +03:00
Kai Huuhko 914c6ffd6b Elementary: Add various missing functions 2013-10-04 09:29:45 +03:00
Kai Huuhko 0004c58c9b Elementary: Fix tests config and spinner 2013-10-03 07:41:46 +03:00
Kai Huuhko 9413b157b9 Evas/Eo: Fix couple of crashes related to Canvas cb's and Eo 2013-10-03 06:19:04 +03:00
Kai Huuhko d4e5ea886c Elementary: Fix Gengrid item_cb crash 2013-10-02 23:38:31 +03:00
Kai Huuhko 29259e670e Elementary: Clean up cruft from the transit test and add it to test.py 2013-10-02 20:28:16 +03:00
Kai Huuhko d430807974 Elementary: Add custom effects for transit. 2013-10-02 19:34:47 +03:00
Kai Huuhko bef896b490 Elementary: Fix transit del_cb 2013-10-02 05:59:21 +03:00
Davide Andreoli f8c332d636 Python-EFL: add support for the "recording" style of ProgressBar 2013-09-16 21:10:45 +02:00
Davide Andreoli 7925fc7056 Python-EFL: some works on the photocam widget
* implemented a proper test
* implemented remote url feature
* fixed file_set error raise
* implemented all the missing legacy setter/getters
2013-08-12 20:56:45 +02:00
Davide Andreoli 66e7f00308 PythonEFL: change the way progressbar pulse mode work.
Prior to this commit you enable (and start) the pulsing animation by doing:
pb.pulse = True
pb.pulse(True)

Now you need to use the less-confusing syntax:
pb.pulse_mode = True
pb.pulse(True)

Sorry for braking the API but was really confusing before.
2013-08-12 16:50:50 +02:00
Kai Huuhko 478709be29 Examples/Elementary/Image: Fix rotation buttons. 2013-08-12 17:22:46 +03:00
Davide Andreoli 37d136fdbc PythonEFL: 2 small fix for the new image test 2013-08-12 15:38:51 +02:00
Davide Andreoli c1298443b3 PythonEFL: add support in Image for urls and a new test for the Image widget 2013-08-12 15:32:33 +02:00
Kai Huuhko 82a3131a5a elementary MultibuttonEntry: Add a print button to the example. 2013-08-02 13:15:42 +00:00
Davide Andreoli fd131a2b69 Python-EFL: @on_event(event_name) decorator for Emotion 2013-05-14 23:13:26 +02:00
Davide Andreoli 6e221b54c5 Python-EFL: espionage: more unicode fun 2013-05-09 20:18:57 +02: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
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
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 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 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
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 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 e164c111a2 Elementary: Implement Toolbar item states, which create an issue with
the item data making the item_del_cb crash.
2013-04-22 20:20:21 +03:00
Kai Huuhko 4ded23ad3b Elementary: Implement Transit del_cb and add tests, which uncovered issues. 2013-04-22 20:20:21 +03:00
Kai Huuhko b2d5f72492 Elementary: Fix diskselector test. 2013-04-22 20:20:21 +03:00
Kai Huuhko 058777167c Elementary: Separate GenlistItem func_data from item_data, add small
optimizations.
2013-04-22 20:20:20 +03:00
Kai Huuhko 285856ea03 Elementary: Initial implementation for Store. Still needs work on
creating the data struct, maybe using memoryviews.

Includes some internal changes for Genlist.
2013-04-22 20:12:28 +03:00
Kai Huuhko 19a2aaf70c Elementary: Add decorate mode tests for Genlist. 2013-04-22 20:12:28 +03:00
Kai Huuhko 531b4ea3ac Elementary: Fix Toolbar menu_get and make the example/test more pythonic. 2013-04-22 20:12:28 +03:00
Kai Huuhko ef07c55987 Elementary: Add two tests for Conformant. 2013-04-22 20:12:28 +03:00
Kai Huuhko 926c7c5082 Elementary: Make the config test to be the same as in elementary_test. 2013-04-22 20:12:28 +03:00
Kai Huuhko 0ed61d0b6c Elementary: Add a simple test for floating objects. 2013-04-22 20:12:28 +03:00
Kai Huuhko 35c3f99d5f Elementary: Complete the API for Gesture layer. 2013-04-22 20:12:27 +03:00
Kai Huuhko 6ebaebd459 Fix elm.progressbar test and make it more examplary. 2013-04-22 20:12:26 +03:00
Kai Huuhko 4b9cacd74e Evas: Fix Textgrid and add tests. 2013-04-22 20:12:26 +03:00
Davide Andreoli 9c8405ee0c Python-EFL: Put in test_dbus_spy.py
This new test is highly ispired by d-feet and probably I will make
a full application from this.
It connect to Session or System buses, show all the available services
on the selected bus, and introspect the services to show all the available
Objects, Interfaces, Properties, Methods and Signals...All this is shown
using two GenList...
If you know d-feet you know what I'm speaking about ;)
2013-04-13 11:28:18 +02:00
Davide Andreoli 43adf11542 Python-EFL: new dbus example, quite empty now, will improve. 2013-04-07 15:18:32 +02:00
Davide Andreoli a52dac2145 Python-EFL: move dbus examples to the examples/ folder. Other tests chmod +x 2013-04-06 23:38:55 +02:00
Kai Huuhko 171e462b50 Elm: Fix segfault in tooltip content cb 2013-04-06 16:29:44 +03:00
Davide Andreoli 86df76780a Python-EFL: fix evas events for py3 and remove that hack in emotion test 2013-04-03 12:59:11 +02:00
Kai Huuhko 48edc6d73d Elm: Fix tests to work in py3 2013-04-02 17:37:06 +00:00
Davide Andreoli 54bda657e0 Python-EFL: add a test for Window.fullscreen prop 2013-03-31 16:37:53 +02:00
Davide Andreoli d5682ff7e0 Python-EFL: Fix emotion test also for py3 2013-03-31 16:27:02 +02:00
Davide Andreoli 87ee5d9be8 Python-EFL: Fix emotion example 2013-03-31 15:31:23 +02:00
Kai Huuhko a1e19c6db0 Fix elm actionslider test 2013-03-30 18:31:20 +00:00
Kai Huuhko 669bdcf46e Add an assertion to genlist iteration test and make the genlist homogeneous. 2013-03-28 16:54:51 +00:00
Davide Andreoli 25d1798b29 Python-EFL: fix elementary edje-external test 2013-03-27 23:41:05 +01:00
Kai Huuhko f6909ac42c Internal function renames:
* _strings_to_python -> eina_list_strings_to_python_list
 * _strings_from_python -> python_list_strings_to_eina_list
Add two functions for string array conversion.
Add two properties to elm.Window.
2013-03-23 06:50:33 +00:00
Kai Huuhko 329ddc5618 python-efl: Add elm.general.cache_all_flush(), fix tests.
SVN revision: 84410
2013-03-05 22:17:24 +00:00
Davide Andreoli 0873fe1621 Do not import EVERY widget while importing efl.elementary
Now the user is responsable of importing the widget used one by one,
this should be a great speedup in the launch of the app.

You have to import stuff in this way:
 from efl import evas
 from efl import elementary
 from efl.elementary.window import Window
 from efl.elementary.layout import Layout

...sorry for the inconvenience



SVN revision: 84402
2013-03-01 21:01:50 +00:00
Davide Andreoli 904468ba00 emotion is really able to play streams from v4l :) I just made a test for it
SVN revision: 84392
2013-02-27 20:44:57 +00:00
Kai Huuhko b27b32b365 python-efl: Add example for elm.Genlist item iteration.
SVN revision: 84339
2013-02-24 12:02:48 +00:00
Kai Huuhko 9b32219ac6 python-efl: Add genlist sorted test to main test interface.
SVN revision: 84333
2013-02-24 07:20:45 +00:00
Kai Huuhko 3d914c8197 python-efl: Add elm.Genlist sorted insert.
SVN revision: 84325
2013-02-23 23:21:25 +00:00
Kai Huuhko 7049e101ec python-efl: Fix Entry anchors.
SVN revision: 84280
2013-02-21 12:27:32 +00:00