| 1 | #!/usr/bin/env python |
|---|
| 2 | # -*- coding: utf-8 -*- |
|---|
| 3 | # |
|---|
| 4 | # Copyright (C) 2005-2006 Insecure.Com LLC. |
|---|
| 5 | # Copyright (C) 2007-2008 Adriano Monteiro Marques |
|---|
| 6 | # |
|---|
| 7 | # Author: Adriano Monteiro Marques <adriano@umitproject.org> |
|---|
| 8 | # Cleber Rodrigues <cleber.gnu@gmail.com> |
|---|
| 9 | # |
|---|
| 10 | # This library is free software; you can redistribute it and/or modify |
|---|
| 11 | # it under the terms of the GNU Lesser General Public License as published |
|---|
| 12 | # by the Free Software Foundation; either version 2.1 of the License, or |
|---|
| 13 | # (at your option) any later version. |
|---|
| 14 | # |
|---|
| 15 | # This library is distributed in the hope that it will be useful, but |
|---|
| 16 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|---|
| 17 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
|---|
| 18 | # License for more details. |
|---|
| 19 | # |
|---|
| 20 | # You should have received a copy of the GNU Lesser General Public License |
|---|
| 21 | # along with this library; if not, write to the Free Software Foundation, |
|---|
| 22 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 23 | |
|---|
| 24 | """ |
|---|
| 25 | higwidgets/higscrollers.py |
|---|
| 26 | |
|---|
| 27 | scrollers related classes |
|---|
| 28 | """ |
|---|
| 29 | |
|---|
| 30 | __all__ = ['HIGScrolledWindow'] |
|---|
| 31 | |
|---|
| 32 | import gtk |
|---|
| 33 | |
|---|
| 34 | class HIGScrolledWindow(gtk.ScrolledWindow): |
|---|
| 35 | def __init__(self): |
|---|
| 36 | gtk.ScrolledWindow.__init__(self) |
|---|
| 37 | self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) |
|---|
| 38 | #self.set_shadow_type(gtk.SHADOW_ETCHED_IN) |
|---|
| 39 | self.set_border_width(5) |
|---|