ultimatepp/bazaar/CtrlLibBoostPy/Switch.cpp
kohait 1b5b6c8dd8 bazaar: BoostPyTest: added some more controls, now works under Linux as well
git-svn-id: svn://ultimatepp.org/upp/trunk@3552 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-06-22 13:22:00 +00:00

18 lines
375 B
C++

#include "Common.h"
using namespace boost::python;
NAMESPACE_UPP
void SwitchSetLabel(Switch& c, const String& s) { c.SetLabel(s); }
void export_Switch()
{
ONCELOCK
{
class_<Switch, bases<Ctrl>, boost::noncopyable>("Switch", "Upp Switch")
.add_property("label", (String (Switch::*)() const)&Switch::GetLabel, &SwitchSetLabel)
;
}
}
END_UPP_NAMESPACE