Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
python
export_CanvasWindow.cxx
Go to the documentation of this file.
1
12
#ifdef _MSC_VER
13
# pragma warning(disable:4231) // nonstandard extension used 'extern' before...
14
# pragma warning(disable:4251) // needs to have dll-interface used by client
15
# pragma warning(disable:4275) // non dll-interface struct
16
# pragma warning(disable:4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
17
#endif
18
19
// with Python 2.3, include before Qt headers to avoid conflict
20
// with symbol `slots'
21
#include <boost/python.hpp>
22
23
#include "
qt/CanvasWindow.h
"
24
25
using namespace
boost::python;
26
27
namespace
hippodraw {
28
namespace
Python {
29
30
void
31
export_CanvasWindow
()
32
{
33
class_ < CanvasWindow >
34
(
"CanvasWindow"
,
35
"The CanvasWindow class contains the Canvas and some controls via\n"
36
"menu items and dialogs."
,
37
no_init )
38
39
.def (
"show"
, &CanvasWindow::show,
40
"show ( None ) -> None\n"
41
"\n"
42
"Brings the canvas window onto the screen."
)
43
44
.def (
"fileNew"
, &CanvasWindow::fileNew,
45
"fileNew ( None ) -> None\n"
46
"\n"
47
"Creates a new CanvasWindow."
)
48
;
49
}
50
51
}
// namespace Python
52
}
// namespace hippodraw
Generated for HippoDraw Class Library by