Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GooCalendar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
GooCalendar
Commits
17a35e3e
Commit
17a35e3e
authored
12 years ago
by
Antoine Smolders
Browse files
Options
Downloads
Patches
Plain Diff
Suppression of get_selected_date() method
parent
0f17068a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
goocalendar/_calendar.py
+4
-7
4 additions, 7 deletions
goocalendar/_calendar.py
with
4 additions
and
7 deletions
goocalendar/_calendar.py
+
4
−
7
View file @
17a35e3e
...
...
@@ -98,8 +98,8 @@
# the entire canvas.
if
old_day
is
None
or
page_changed
:
self
.
update
()
self
.
emit
(
'
day-selected
'
,
self
.
get_
selected_date
()
)
self
.
emit
(
'
page-changed
'
,
self
.
get_
selected_date
()
)
self
.
emit
(
'
day-selected
'
,
self
.
selected_date
)
self
.
emit
(
'
page-changed
'
,
self
.
selected_date
)
return
# This is fast: Update only the old and newly selected days.
...
...
@@ -127,7 +127,7 @@
new_day
.
update
()
self
.
_selected_day
=
new_day
if
old_day
!=
new_day
:
self
.
emit
(
'
day-selected
'
,
self
.
get_
selected_date
()
)
self
.
emit
(
'
day-selected
'
,
self
.
selected_date
)
def
previous_page
(
self
):
cal
=
calendar
.
Calendar
(
self
.
firstweekday
)
...
...
@@ -153,9 +153,6 @@
self
.
update
()
self
.
emit
(
'
view_changed
'
,
self
.
view
)
def
get_selected_date
(
self
):
return
self
.
selected_date
@property
def
event_store
(
self
):
return
self
.
_event_store
...
...
@@ -628,7 +625,7 @@
self
.
update
()
def
on_key_press_event
(
self
,
widget
,
event
):
date
=
self
.
get_
selected_date
()
date
=
self
.
selected_date
if
event
.
keyval
==
gtk
.
gdk
.
keyval_from_name
(
'
Up
'
):
self
.
select
(
date
-
datetime
.
timedelta
(
7
))
elif
event
.
keyval
==
gtk
.
gdk
.
keyval_from_name
(
'
Down
'
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment