-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.js
More file actions
29 lines (27 loc) · 691 Bytes
/
run.js
File metadata and controls
29 lines (27 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//var nodeQt = require('./build/Release/nodeQt');
console.log('aaa');
var nodeQt = require('./lib/nodeQt');
console.log('aaa');
setInterval(function() {
console.log('pepe');
},500);
process.nextTick(function() {
var qApp = new nodeQt.Application();
var win = new nodeQt.Widget();
win.resize(200,200);
var button = new nodeQt.PushButton('Hello World', win);
button.resize(200,50);
button.Callback(true, function() {
console.log("hice click y anda");
var a = Math.random() *500,
b = Math.random() *500;
console.log(" %d x %d ", a, b);
win.resize(a, b);
});
win.show();
qApp.initialize();
/* setInterval(function() {
qApp.processEvents();
}, 1);*/
// qApp.exec();
});