aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-03-15 21:07:10 +0100
committerDave Andreoli <dave@gurumeditation.it>2017-03-15 21:07:10 +0100
commitadd166fb62982b015abf79679ec3b25366cc27e4 (patch)
treef0bf71d6c4950f21cbc238b93de25b0474b5287c /examples
parentNew 1.19 API: elm.ELM_INPUT_PANEL_LAYOUT_VOICE (diff)
downloadpython-efl-add166fb62982b015abf79679ec3b25366cc27e4.tar.gz
New 1.19 API: elm.Calendar.date_{min,max}
with test
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_calendar.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/elementary/test_calendar.py b/examples/elementary/test_calendar.py
index 089fbbe..2c4482f 100644
--- a/examples/elementary/test_calendar.py
+++ b/examples/elementary/test_calendar.py
@@ -106,17 +106,17 @@ def print_cal_info(cal, en):
if not stm:
return
- interval = cal.interval
- year_min, year_max = cal.min_max_year
sel_enabled = True if cal.select_mode != ELM_CALENDAR_SELECT_MODE_NONE else False
wds = cal.weekdays_names
info = (
- " Day: %i, Mon: %i, Year %i, WeekDay: %i<br/>"
- " Interval: %0.2f, Year_Min: %i, Year_Max %i, Sel Enabled : %s<br/>"
- " Weekdays: %s, %s, %s, %s, %s, %s, %s<br/>" % (
+ " Day: %i, Mon: %i, Year %i, WeekDay: %i<br>"
+ " Interval: %0.2f, Sel Enabled : %s<br>"
+ " Date Min: %s, Date Max: %s <br>"
+ " Weekdays: %s, %s, %s, %s, %s, %s, %s<br>" % (
stm.day, stm.month, stm.year, stm.weekday(),
- interval, year_min, year_max, sel_enabled,
+ cal.interval, sel_enabled,
+ cal.date_min, cal.date_max,
wds[0], wds[1], wds[2], wds[3], wds[4], wds[5], wds[6]
)
)
@@ -151,7 +151,7 @@ def calendar2_clicked(obj, item=None):
cal = Calendar(bx, size_hint_weight=EXPAND_BOTH,
size_hint_align=FILL_BOTH, weekdays_names=weekdays,
first_day_of_week=ELM_DAY_SATURDAY, interval=0.4,
- min_max_year=(2010, 2020))
+ date_min=datetime(2012, 12, 7), date_max=datetime(2020, 1, 3))
cal.show()
bx.pack_end(cal)