This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
GuiApplication app; | |
MAIN_DEFINITION; | |
class HelloForm : public Window | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
class HelloForm : public Window | |
{ | |
public: | |
Button button; | |
CONSTRUCT(HelloForm, Window) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
class HelloForm : public Window | |
{ | |
public: | |
Button button; | |
CONSTRUCT(HelloForm, Window) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
class HelloForm : public Window | |
{ | |
public: | |
Button button; | |
CONSTRUCT(HelloForm, Window) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
class HelloForm : public Window | |
{ | |
public: | |
Button button; | |
CONSTRUCT(HelloForm, Window) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class Form1 : Window | |
{ | |
caption = $"Form1"; | |
background = formColor; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class Form1 : Window | |
{ | |
caption = $"Form1"; | |
background = formColor; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#undef _DEBUG | |
#include <Python.h> | |
typedef struct { | |
PyObject_HEAD | |
/* Type-specific fields go here. */ | |
} noddy_NoddyObject; | |
static PyTypeObject noddy_NoddyType = { | |
PyVarObject_HEAD_INIT(NULL, 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############## ex1.py: | |
# -*- coding: utf-8 -*- | |
import pyEcere | |
pyEcere.funStuff("Hello, Python!\n") | |
############## pyEcere.py: | |
from _pyEcere import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from _pyEcere import * | |
def funStuff(fun): | |
app = lib.eC_init(True, len(sys.argv), [ffi.new("char[]", i.encode('utf8')) for i in sys.argv]) | |
lib.ecere_init(app) | |
lib.PrintLn(lib.class_String, fun.encode('utf8'), ffi.NULL) |