# Path: pwm/config.py
# class Config:
#     def __init__(self):
#     def load(self, default=False):
#     def _load_default(self):
#     def _ensure_config_exists(self, path):
#     def __getattr__(self, name):
# def setup_keys():
# def handle_key_press_event(event):
# def create_arguments(func):
#     def wrapper(*args, **kwargs):
# 
# Path: pwm/ffi/xcb.py
# class XcbError(Exception):
# class Cookie:
# class Xcb:
#     def __init__(self, error):
#     def __str__(self):
#     def __init__(self, name, value):
#     def __getattr__(self, name):
#     def reply(self):
#     def check(self):
#     def __init__(self):
#     def __getattr__(self, name):
#         def request(func, *args, **kwargs):
#     def connect(self, display=None):
#     def mask(self, masks):
# 
# Path: pwm/ffi/cairo.py
# class CairoError(Exception):
# class Context:
# class Cairo:
#     def __init__(self, ctx):
#     def __getattr__(self, name):
#     def encode(self, text):
#     def select_font_face(self, face, slant, weight):
#     def text_extents(self, text, extents):
#     def show_text(self, text):
#     def __init__(self):
#     def __getattr__(self, name):
#     def create(self, surface):


from pwm.config import config
from pwm.ffi.xcb import xcb
from pwm.ffi.cairo import cairo
import pwm.color as color
import pwm.events
import pwm.windows
import pwm.widgets
# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT


primary = None


class Bar:
    def __init__(self):
        self.x = 0
        self.y = 0
        self.width = xcb.screen.width_in_pixels
        self.height = calculate_height()

        self.workspaces_end = 0
        self.systray_width = 0

        self.wid = self.create_window()

# Path: pwm/config.py
# class Config:
#     def __init__(self):
#     def load(self, default=False):
#     def _load_default(self):
#     def _ensure_config_exists(self, path):
#     def __getattr__(self, name):
# def setup_keys():
# def handle_key_press_event(event):
# def create_arguments(func):
#     def wrapper(*args, **kwargs):
# 
# Path: pwm/ffi/xcb.py
# class XcbError(Exception):
# class Cookie:
# class Xcb:
#     def __init__(self, error):
#     def __str__(self):
#     def __init__(self, name, value):
#     def __getattr__(self, name):
#     def reply(self):
#     def check(self):
#     def __init__(self):
#     def __getattr__(self, name):
#         def request(func, *args, **kwargs):
#     def connect(self, display=None):
#     def mask(self, masks):
# 
# Path: pwm/ffi/cairo.py
# class CairoError(Exception):
# class Context:
# class Cairo:
#     def __init__(self, ctx):
#     def __getattr__(self, name):
#     def encode(self, text):
#     def select_font_face(self, face, slant, weight):
#     def text_extents(self, text, extents):
#     def show_text(self, text):
#     def __init__(self):
#     def __getattr__(self, name):
#     def create(self, surface):


# Path: pwm/bar.py
from pwm.config import config
from pwm.ffi.xcb import xcb
from pwm.ffi.cairo import cairo
import pwm.color as color
import pwm.events
import pwm.windows
import pwm.widgets

# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT


primary = None


class Bar:
    def __init__(self):
        self.x = 0
        self.y = 0
        self.width = xcb.screen.width_in_pixels
        self.height = calculate_height()

        self.workspaces_end = 0
        self.systray_width = 0

        self.wid = self.create_window()

        self.pixmap = self.create_pixmap()