1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# !/usr/bin/python
# -*- coding: utf-8 -*-
# Glitter Toolkit
__authors__ = ["Jan Jokela <janjokela@gmail.com>"]
__licenses__ = ["LICENSE.LGPL"]
__description__ = "Floating button widget"
import gobject
from button import Button
class FloatingButton(Button):
"""
A button widget that floats on top of other widgets, this means it hasn't
any visible contourns or solid backgrounds so it integrates well with the
underlying widget
"""
def __init__(self, icon=None, label=None):
""" Initialize floating button widget """
super(FloatingButton, self).__init__(icon, label)
|