34 lines
997 B
Python
34 lines
997 B
Python
import gi
|
|
|
|
from .astalify import astalify
|
|
from enum import Enum
|
|
|
|
gi.require_version("Astal", "3.0")
|
|
gi.require_version("Gtk", "3.0")
|
|
|
|
from gi.repository import Astal, Gtk
|
|
|
|
class CallableEnum(Enum):
|
|
def __call__(self, *args, **kwargs):
|
|
return self.value(*args, **kwargs)
|
|
|
|
class Widget(CallableEnum):
|
|
Box = astalify(Astal.Box)
|
|
Button = astalify(Astal.Button)
|
|
CenterBox = astalify(Astal.CenterBox)
|
|
CircularProgress = astalify(Astal.CircularProgress)
|
|
DrawingArea = astalify(Gtk.DrawingArea)
|
|
Entry = astalify(Gtk.Entry)
|
|
EventBox = astalify(Astal.EventBox)
|
|
Icon = astalify(Astal.Icon)
|
|
Label = astalify(Gtk.Label)
|
|
LevelBar = astalify(Astal.LevelBar)
|
|
MenuButton = astalify(Gtk.MenuButton)
|
|
Overlay = astalify(Astal.Overlay)
|
|
Revealer = astalify(Gtk.Revealer)
|
|
Scrollable = astalify(Astal.Scrollable)
|
|
Slider = astalify(Astal.Slider)
|
|
Stack = astalify(Astal.Stack)
|
|
Switch = astalify(Gtk.Switch)
|
|
Window = astalify(Astal.Window)
|