Jump to content
Sign in to follow this  
  • entries
    20
  • comments
    21
  • views
    8966

myGUI

Sign in to follow this  
Brandon N

574 views

So I spent a few hours a few days ago and again last night making a "good enough" pyGame GUI. It's largely what you'd expect, the main window holds "frame" widgets which then contain widgets that may contain widgets and so forth. Completed currently are Frames (with or without a titlebar), Edit Field (single line text box), Button, Radio Button and Label. In the works are a multiline non-input run TextArea, Picture and Scroll Bar.

I figure that that should be enough for my purposes. The current way they are displayed is rather ugly, but its functional and I can worry about prettying it up when it matters. I've made a bit of headway with the network code (fixed an issue) and will probably (try to) merge the two bases tonight.
Sign in to follow this  


6 Comments


Recommended Comments

hmm.. missed this journal, whose picture is that? Also what is this pyGame you speak of? Are you making some kind of generic editor or tool or something for python based games?

Screenshots and gory details please [grin]. Okay, the details part is not necessary. *looks around innocently* What? Oh okay, I guess it doesnt have to be gory either. But definately screenshots..I think I am rambling now...

Share this comment


Link to comment
Quote:
hmm.. missed this journal, whose picture is that?

Howard Philip Lovecraft, an early 20th century author.

Quote:
Also what is this pyGame you speak of?
PyGame.

From the site:
Quote:
Pygame is a set of Python modules designed for writing games.It is written on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system.

Quote:
Are you making some kind of generic editor or tool or something for python based games?
I'm currently making a 2D Python game (though it's using OpenGL, not the SDL stuff). I'm attempting to make it modular enough that I can use pieces of it elsewhere. Realistically, the most easily separable piece is the UI, which well, stinks right now. Fortunately, its nice given the few hours I've put into that aspect.

As for the game, I'm leaning heavily towards a server-based multiplayer role playing game. The real setback will be art, though I may end up paying a bit to get some things done.

Quote:
Screenshots and gory details please . Okay, the details part is not necessary. *looks around innocently* What? Oh okay, I guess it doesnt have to be gory either. But definately screenshots..I think I am rambling now...
It's still early for screenshots. I have console versions of the networked server and client (connecting, basic commands), a graphical client test (without UI) and now have just started the UI (as per my journal). I have to integrate the UI and networking aspects next, probably early next week when I next have time.

I plan on releasing at least the client as open source.

This isn't a super intense project on my behalf. It's a "when I have the time" sort of thing. That's why I chose Python. However, I do intend on getting it up and running.

Share this comment


Link to comment
Hm.. a whole game written in python. Very cool. I'm excited about your work as I'm learning Python myself (you know that).

I'll have to look into using OpenGL with Python. Gotta create some kind of app by next Tuesday, it might as well be graphical!

Share this comment


Link to comment
Cool. At the bottom of my journal you can see two screenshots of a guy walking around and able to chat. The source code that that can be found here. The specific one is Walker.rar. I refactored a bit and a non-moving version is in Proj.rar. The two other files were me playing with some network code.

Things have changed a lot in my code from those files (in fact I'd say completely), and they're somewhat messy, but they're commented well enough that you can probably figure out the important parts if you're interested.

I've begun to use pyGame moreso than GLUT (now only using GLUT for bitmap fonts, which may change soon), and you're welcome to any source I may have at any point (as is anyone else reading this).

Cheers and good luck with your project.

Share this comment


Link to comment
Oh okay, didnt know what pyGame was, had no idea you could do so much with it [and Python too]. Thanks for explaining. :D

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!