M30W Programming Forum

M30W is a text-based version of Scratch

You are not logged in.

Announcement

This is the development forum for M30W (also known as Emerald, do not confuse with Emerald Programming Language).
Our Non-development forums are available here

M30W(Emerald) 0.3 is out! (Download) Requires Python 2.6 or higher.
Opal 0.3(A better command line M30W) is out! (Download) Requires Python 2.6 or higher.
M30W 0.3.6 GUI barebones (Download) Requires Python 2.6 or higher and wxPython
Diamond-2 RED2 GUI Barebones (Fancy M30W editor) s out! (Download) Requires .NET Framework 3.5 or higher, does not require Python
M30W++ GUI barebones (Java M30W) Alpha 1 is out! (Download) Requires Java.


Gershmer.net, our hosting, will close in February 2011. We have not fully decided what to do with our hosting after that, but we will tell you when we decide.

Adverts

Adverts

#1 2009-10-09 02:35:48

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Changes to make creating a GUI easier

I have a good idea of where to start with making a GUI, but I think a few changes should be made to make it a lot easier:

1. Commands should be on one line. Example:

Code:

Print Hello World!

2. There needs to be some way of writing in the program when you want to access a variable, instead of typing 'Print' and having the computer ask you.

However, while I'm waiting for this, there is still something I can do...


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

2009-10-09 02:35:48

AdBot
Advertisements

#2 2009-10-09 03:19:37

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Changes to make creating a GUI easier

I'm not sure on how to do this but it's a feature I wanted too.


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#3 2009-10-09 14:43:31

coolstuff
M30W Team
Registered: 2009-10-08
Posts: 24

Re: Changes to make creating a GUI easier

It's a TON easier to code when on seperate lines...
Plus, it gives us a unique way of programming :P

Offline

 

#4 2009-10-09 15:06:23

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Changes to make creating a GUI easier

No, he meant in Emerald Programming not Python.


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#5 2009-10-10 04:21:32

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Changes to make creating a GUI easier

A way to do it could be by using string functions:
First, figure out what the beginning of your command says using the 'find' command. e.g. You can test if the command is 'print' by doing this:

Code:

if find(print, program[line]) == 0:

Then, do that command with the rest of the line.

For now, you could use a backslash before the word 'yes' or 'no' to tell the computer whether you want to print a variable or not. For example,

Code:

print gender \yes

would mean that you want to print a variable named 'gender'.

I hope this helps (though I'm usually no good at explaining things)!

Last edited by floppy_gunk (2009-10-10 04:35:28)


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#6 2009-10-10 22:14:19

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Changes to make creating a GUI easier

If you can add this, that'd be great!


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#7 2009-12-03 16:00:09

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: Changes to make creating a GUI easier

another way we could add a very simple GUI is easyGUI. i think that you have to pay for it though...
but i have a python book that came with easgGUI, I will post a version of easyGUI somewhere so that everyone has access
to it. :)


Heh heh heh (Semi-evil laugh)

Offline

 

#8 2009-12-03 19:43:01

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

hidas wrote:

another way we could add a very simple GUI is easyGUI. i think that you have to pay for it though...
but i have a python book that came with easgGUI, I will post a version of easyGUI somewhere so that everyone has access
to it. :)

Interesting...


http://card.ly/images/vcard-green-small.png

Offline

 

#9 2009-12-03 21:40:41

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

cant you do that in iron python?


I am A M30Wr.
I always get the last word.

Offline

 

#10 2009-12-03 21:50:09

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: Changes to make creating a GUI easier

markyparky56 wrote:

cant you do that in iron python?

do you mean iron python or in python?
and yes, easygui is for TONS of different languages including python.:D


Heh heh heh (Semi-evil laugh)

Offline

 

#11 2009-12-03 22:02:20

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

hidas wrote:

markyparky56 wrote:

cant you do that in iron python?

do you mean iron python or in python?
and yes, easygui is for TONS of different languages including python.:D

IronPython is what he means. IronPython is .NET Python, while it is a .py, it still requires .NET. It's like Visual Studio in Python, literally.


http://card.ly/images/vcard-green-small.png

Offline

 

#12 2009-12-04 13:21:28

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

oh, right, ok :)


I am A M30Wr.
I always get the last word.

Offline

 

#13 2009-12-04 13:48:58

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: Changes to make creating a GUI easier

Gershmer wrote:

hidas wrote:

markyparky56 wrote:

cant you do that in iron python?

do you mean iron python or in python?
and yes, easygui is for TONS of different languages including python.:D

IronPython is what he means. IronPython is .NET Python, while it is a .py, it still requires .NET. It's like Visual Studio in Python, literally.

wow. that is cool. :)


Heh heh heh (Semi-evil laugh)

Offline

 

#14 2009-12-04 18:13:59

filo5
Diamond Creator
From: Catford, London, UK
Registered: 2009-10-08
Posts: 253
Website

Re: Changes to make creating a GUI easier

But it's limited to Windows/Mono. No. Emerald core should be done in cross-platform Python.


http://img8.imageshack.us/img8/429/filo5newsigsg1planf.png

Offline

 

#15 2009-12-04 19:50:46

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

filo5 wrote:

But it's limited to Windows/Mono. No. Emerald core should be done in cross-platform Python.

That's why I said .NET...


http://card.ly/images/vcard-green-small.png

Offline

 

#16 2009-12-04 20:48:42

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

is it possible to download .NET onto a mac? Because isn't it a windows thing? since windows is made my microsoft, or is .NET cross platform? (If im talking sense to anybody)


I am A M30Wr.
I always get the last word.

Offline

 

#17 2009-12-04 21:14:55

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

markyparky56 wrote:

is it possible to download .NET onto a mac?

No


http://card.ly/images/vcard-green-small.png

Offline

 

#18 2009-12-05 02:15:29

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Changes to make creating a GUI easier

We need to use something that IS cross-platform.


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#19 2009-12-05 09:06:36

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

ok, what about squeak then? you create the image files, and it is cross plantform.


I am A M30Wr.
I always get the last word.

Offline

 

#20 2009-12-05 13:34:31

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

markyparky56 wrote:

ok, what about squeak then? you create the image files, and it is cross plantform.

Squeak is a really annoying programming language...

Even if we used MIT squeak...


http://card.ly/images/vcard-green-small.png

Offline

 

#21 2009-12-05 13:41:00

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

Well... hmmm... any other programing languages?
What about Ruby or Perl? any others? or shall we just use Pythonand try to find a way around the problem.


I am A M30Wr.
I always get the last word.

Offline

 

#22 2009-12-05 13:56:35

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

markyparky56 wrote:

Well... hmmm... any other programing languages?
What about Ruby or Perl? any others? or shall we just use Pythonand try to find a way around the problem.

What was the python problem?

We weren't having any problems. We just can't use .NET Python, we just use regular Python.


http://card.ly/images/vcard-green-small.png

Offline

 

#23 2009-12-05 16:21:01

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

So how do we make a GUI then?


I am A M30Wr.
I always get the last word.

Offline

 

#24 2009-12-05 17:11:52

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Changes to make creating a GUI easier

markyparky56 wrote:

So how do we make a GUI then?

http://pythongui1.tk/
http://pythongui2.tk/


http://card.ly/images/vcard-green-small.png

Offline

 

#25 2009-12-05 19:45:54

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Changes to make creating a GUI easier

So, why don't we have emerald programing, in the GUI?


I am A M30Wr.
I always get the last word.

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting