# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

import _pymforms
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


class Utilities(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Utilities, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Utilities, name)
    __repr__ = _swig_repr
    __swig_getmethods__["show_message"] = lambda x: _pymforms.Utilities_show_message
    if _newclass:show_message = staticmethod(_pymforms.Utilities_show_message)
    __swig_getmethods__["show_error"] = lambda x: _pymforms.Utilities_show_error
    if _newclass:show_error = staticmethod(_pymforms.Utilities_show_error)
    __swig_getmethods__["show_warning"] = lambda x: _pymforms.Utilities_show_warning
    if _newclass:show_warning = staticmethod(_pymforms.Utilities_show_warning)
    __swig_getmethods__["set_clipboard_text"] = lambda x: _pymforms.Utilities_set_clipboard_text
    if _newclass:set_clipboard_text = staticmethod(_pymforms.Utilities_set_clipboard_text)
    __swig_getmethods__["get_clipboard_text"] = lambda x: _pymforms.Utilities_get_clipboard_text
    if _newclass:get_clipboard_text = staticmethod(_pymforms.Utilities_get_clipboard_text)
    __swig_getmethods__["add_end_ok_cancel_buttons"] = lambda x: _pymforms.Utilities_add_end_ok_cancel_buttons
    if _newclass:add_end_ok_cancel_buttons = staticmethod(_pymforms.Utilities_add_end_ok_cancel_buttons)
    def __init__(self, *args): 
        this = _pymforms.new_Utilities(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _pymforms.delete_Utilities
    __del__ = lambda self : None;
Utilities_swigregister = _pymforms.Utilities_swigregister
Utilities_swigregister(Utilities)
Utilities_show_message = _pymforms.Utilities_show_message
Utilities_show_error = _pymforms.Utilities_show_error
Utilities_show_warning = _pymforms.Utilities_show_warning
Utilities_set_clipboard_text = _pymforms.Utilities_set_clipboard_text
Utilities_get_clipboard_text = _pymforms.Utilities_get_clipboard_text
Utilities_add_end_ok_cancel_buttons = _pymforms.Utilities_add_end_ok_cancel_buttons

class View(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, View, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, View, name)
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    def show(*args): return _pymforms.View_show(*args)
    def set_size(*args): return _pymforms.View_set_size(*args)
    __swig_destroy__ = _pymforms.delete_View
    __del__ = lambda self : None;
View_swigregister = _pymforms.View_swigregister
View_swigregister(View)

class Box(View):
    __swig_setmethods__ = {}
    for _s in [View]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Box, name, value)
    __swig_getmethods__ = {}
    for _s in [View]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, Box, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _pymforms.new_Box(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _pymforms.delete_Box
    __del__ = lambda self : None;
    def add(*args): return _pymforms.Box_add(*args)
    def add_end(*args): return _pymforms.Box_add_end(*args)
Box_swigregister = _pymforms.Box_swigregister
Box_swigregister(Box)

class Button(View):
    __swig_setmethods__ = {}
    for _s in [View]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Button, name, value)
    __swig_getmethods__ = {}
    for _s in [View]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, Button, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _pymforms.new_Button(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _pymforms.delete_Button
    __del__ = lambda self : None;
    def set_text(*args): return _pymforms.Button_set_text(*args)
    def enable_internal_padding(*args): return _pymforms.Button_enable_internal_padding(*args)
    def add_clicked_callback(*args): return _pymforms.Button_add_clicked_callback(*args)
Button_swigregister = _pymforms.Button_swigregister
Button_swigregister(Button)

FormResizable = _pymforms.FormResizable
FormMinimizable = _pymforms.FormMinimizable
class Form(View):
    __swig_setmethods__ = {}
    for _s in [View]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Form, name, value)
    __swig_getmethods__ = {}
    for _s in [View]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, Form, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _pymforms.new_Form(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _pymforms.delete_Form
    __del__ = lambda self : None;
    def set_title(*args): return _pymforms.Form_set_title(*args)
    def set_content(*args): return _pymforms.Form_set_content(*args)
Form_swigregister = _pymforms.Form_swigregister
Form_swigregister(Form)



