annotate gui/slot.py @ 169:5b880b8cff6d

Fixes to make PARPG compatible with changes made to fife.
author Beliar <KarstenBock@gmx.net>
date Sat, 25 Feb 2012 00:21:28 +0100
parents
children
rev   line source
169
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
1 # This file is part of PARPG.
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
2
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
3 # PARPG is free software: you can redistribute it and/or modify
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
4 # it under the terms of the GNU General Public License as published by
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
5 # the Free Software Foundation, either version 3 of the License, or
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
6 # (at your option) any later version.
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
7
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
8 # PARPG is distributed in the hope that it will be useful,
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
11 # GNU General Public License for more details.
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
12
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
13 # You should have received a copy of the GNU General Public License
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
14 # along with PARPG. If not, see <http://www.gnu.org/licenses/>.
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
15
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
16 from fife.extensions.pychan import Icon
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
17
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
18 class Slot(Icon):
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
19
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
20 def _setImage(self, source):
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
21 self._image = source
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
22
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
23 def _getImage(self):
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
24 return self._image
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
25
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
26 image = property(_getImage, _setImage)
5b880b8cff6d Fixes to make PARPG compatible with changes made to fife.
Beliar <KarstenBock@gmx.net>
parents:
diff changeset
27