Finally, after two hard months... or at least busy months, I have finished my forst complete version of PyToolkit.py. This was created to circumvent the issue that occurs when trying to use pygame and Tkinter in the same program. You are free to download it at:
PyToolkit_8.4.0 (source code)
PyToolkit_8.4.0 (Windows Installer)
Please post any comments/questions you may have about this library. The pytk_help.py file is designed to give you a sample run through of how each class works. more to come later.
.:Sween:.
Showing posts with label Pygame. Show all posts
Showing posts with label Pygame. Show all posts
Monday, April 28, 2008
Friday, February 1, 2008
Widget Class
So you're programming a game or doing something using pygame. You have need to input a string so you can perhaps save a file or enter your new high score. How does one do this without using input or raw_input? Well if you have knowledge of the Tkinter library and the widgets it provides you may also know that it seems difficult to make Tkinter work with pygame (or at least that is my experience... maybe I just don't know how to focus a Tkinter widget). I have started work on some widgets like Entry and Label and Button. It uses pygame to draw the widget and the class for each of these has parameters that are defaults but it requires the class to be called with screen and background instances, which isn't a huge deal, it's just helpful to know.
I have updated my widget.py file to include buttons and a label. Go here to see the new and improved version. There will be regular updates as Idubug and meticulously include more features. I may just limit this library to Entry, Button and Label until such a time as I need more things like menus and such.
.:Sween:.
UPDATE
I have updated my widget.py file to include buttons and a label. Go here to see the new and improved version. There will be regular updates as Idubug and meticulously include more features. I may just limit this library to Entry, Button and Label until such a time as I need more things like menus and such.
.:Sween:.
Saturday, December 29, 2007
New Developments I
Here it is! Something new!
...Kind of...
I now have an updated version of "SpriteMaker"! In this version I got rid of the annoying prompts at the beginning which ask for the tile size and the filename you are planning on saving the graphic as. I figured it made more sense to input a filename when saving and loading. So I did just that! Speaking of loading, I now have a means to load the graphic into the tile grid and in the window in the corner. Graphically, nothing has changed. That will be for "SpriteMaker2.0". This one is only version 1.2.
So, if you are a masochist or enjoy meticulously plotting little dots on a surface to make a 10:1 scale graphic, then this is the application for you! If not, Adobe Photoshop(r) is where it's at for you, my friend.
here's a little cutie I made for a friend of mine's game. Kinda tiny, he is...

Like I said, most of this stuff is in it's beginning stages and I will probably (or definately) make more defined graphics. I feel my color changes are too subtle and the resolutions on monitors these days is a lot more magnanimous than they were in the late 90's when I was doing 20x20 sprites and tiles on QBasic. *phew* That octoganal fire eyeball is a 30x30. Not real big.

Anyhow, there will be more news soon. And something maybe even playable. If anyone is interested in my source code, I'd gladly email it to you, because I don't exactly know how best to upload to an FTP site or something...
Until then!
Cheers!
.:Sween:.
...Kind of...
I now have an updated version of "SpriteMaker"! In this version I got rid of the annoying prompts at the beginning which ask for the tile size and the filename you are planning on saving the graphic as. I figured it made more sense to input a filename when saving and loading. So I did just that! Speaking of loading, I now have a means to load the graphic into the tile grid and in the window in the corner. Graphically, nothing has changed. That will be for "SpriteMaker2.0". This one is only version 1.2.
So, if you are a masochist or enjoy meticulously plotting little dots on a surface to make a 10:1 scale graphic, then this is the application for you! If not, Adobe Photoshop(r) is where it's at for you, my friend.
here's a little cutie I made for a friend of mine's game. Kinda tiny, he is...

Like I said, most of this stuff is in it's beginning stages and I will probably (or definately) make more defined graphics. I feel my color changes are too subtle and the resolutions on monitors these days is a lot more magnanimous than they were in the late 90's when I was doing 20x20 sprites and tiles on QBasic. *phew* That octoganal fire eyeball is a 30x30. Not real big.

Anyhow, there will be more news soon. And something maybe even playable. If anyone is interested in my source code, I'd gladly email it to you, because I don't exactly know how best to upload to an FTP site or something...
Until then!
Cheers!
.:Sween:.
Subscribe to:
Posts (Atom)