PyGTK for Windows Form?

For questions about using Classic.

Post » Tue Oct 11, 2011 1:23 am

Trying to make a game that has a Windows menu bar but Construct Classic doesn't seem to have a working editor so I decided I would look into python scripts.

Took me some time but I found PyGTK which seem to do what I want but the question is, is that the best/most relevant library to use? I mean there are tonnes of others out there but all I can find was this.

Any suggestions of whether this is the right choice or is there a more suited one? Also I'd like to know how to import it into construct. Do I just place the relevant dlls into the right folder to enable me to import it into the scripts or is it abit more complicated than that?
B
3
G
1
Posts: 44
Reputation: 563

Post » Tue Oct 11, 2011 1:42 am

Pretty sure you cant import anything gui into the construct window, but you can open other windows .
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Oct 11, 2011 3:52 am

[QUOTE=newt] Pretty sure you cant import anything gui into the construct window, but you can open other windows .[/QUOTE]

Yes you can open other windows (perhaps a transparent one too :), you could do an overlay on the Construct Window so it appears that what you are displaying is in the same window..I think Rojo showed a .cap of this. I haven't tried it myself.

As far as using PyGTK read the tutorials on this link:
http://www.scirra.com/forum/python-external-libraries-w-ai-speech_topic39525.html
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Oct 11, 2011 3:57 am

You can actually, but it's a bit low level using the windows api.
There's a python example for a menu bar here:
http://www.scirra.com/forum/menu-bar-via-python_topic42842_post266732.html?KW=menu#266732
It's admittedly a bit noisy in the bit for defining the menu, but it should be straightforward.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Tue Oct 11, 2011 4:32 am

I have no idea most of what is in the script but it works and I figured out how to control the menu. All I need to do now is know how to add the tick boxes in the menu and small windows forms to appear when you click those. I guess there's a doc or something like that right?

I guess I'll try to find it and learn how the rest works. Man I regret not spending some time reading C++ book. Dang.

#
Just realized its in C... gah, back to past anyone?jangsy52011-10-11 04:35:56
B
3
G
1
Posts: 44
Reputation: 563


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests