xcffib-0.11.0: A cffi-based python binding for X
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.XCB.Python.PyHelpers

Synopsis

Documentation

mkInt :: Int -> Expr () Source #

mkAssign :: PseudoExpr a => a -> Expr () -> Statement () Source #

mkCall :: (PseudoExpr a, PseudoArgument b) => a -> [b] -> Expr () Source #

mkEnum :: String -> [(String, Expr ())] -> Statement () Source #

mkName :: String -> Expr () Source #

Make an Expr out of a string like "foo.bar" describing the name.

mkDot :: PseudoExpr a => a -> String -> Expr () Source #

mkAttr :: String -> Expr () Source #

Make an attribute access, i.e. self.string.

mkXClass :: String -> String -> Suite () -> Suite () -> Statement () Source #

mkUnpackFrom :: PseudoExpr a => a -> [String] -> String -> Suite () Source #

ident :: String -> Ident () Source #

Create and sanatize a python identifier.

mkIf :: Expr () -> Suite () -> Statement () Source #

repeatStr :: String -> Expr () -> Expr () Source #