473,729 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom widgets

I want to build some basic kid games for Linux (Ubuntu/EdUbuntu) and
so after looking around I've decided that Python would probably be the
path of least resistance.

I have a need to create custom gui elements (widgets?). I want these
games to be very graphical. Not 3d or anything crazy, I just want them
to look fun and so the buttons and things will all need to be custom.
For instance, I might have spaceship or alien shaped buttons and the
background of my window might be a photo of a galaxy. Make sense?

So I've started looking at Tkinter, and PyGTK but I don't want to get
too deep without knowing if they'll work for me. Do either of these
toolkits provide the ability to create custom widgets? Is there
something else I should be looking at instead? I'm not concerned with
cross platform compatibility, I just want to use something that will
be readily available in your average Ubuntu install.

Thanks!

Dana

Feb 4 '08 #1
1 1271
Whiplash wrote:
I want to build some basic kid games for Linux (Ubuntu/EdUbuntu) and
so after looking around I've decided that Python would probably be the
path of least resistance.

I have a need to create custom gui elements (widgets?). I want these
games to be very graphical. Not 3d or anything crazy, I just want them
to look fun and so the buttons and things will all need to be custom.
For instance, I might have spaceship or alien shaped buttons and the
background of my window might be a photo of a galaxy. Make sense?

So I've started looking at Tkinter, and PyGTK but I don't want to get
too deep without knowing if they'll work for me. Do either of these
toolkits provide the ability to create custom widgets? Is there
something else I should be looking at instead? I'm not concerned with
cross platform compatibility, I just want to use something that will
be readily available in your average Ubuntu install.
Maybe using pygame is the better alternative. You don't have widgets there,
but an event-system + all rendering capabilities you can thing of.
Applications like FrozenBubble (which is written in Perl, but also based on
the SDL as pygame is) show off the power of this approach.

AFAIK there are even simple GUI-toolkits on top of pygame available.

Diez
Feb 4 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1145
by: William Gill | last post by:
I am trying to create a Python UI in Tkinter and have several (frame) widgets that display various data fields. I am trying to create a 'changed' event that each widget can trigger when they have been edited. I see lots of references that suggest that 'custom' events can be created, but haven’t found any that give me a clue as to how. Also, can parent or sibling widgets capture the 'custom' event (similar to using <F1>)? Thanks,
1
1409
by: Jeff S | last post by:
I'm storing a list of widgets in a database. The list changes infrequently (twice per week at most), and is relatively short (200 items at most, with very little detail per item). A small subset of all possible widgets will be displayed on a page (using VB.NET/code behind). I plan to populate a custom collection/class with a list of all possible widgets. The class will include a method that returns the required subset. Of course the logic...
10
5802
by: jubei | last post by:
I've been trying to write a custom widget for a project, however when i try to run code that uses it i get the following error > ./nokiagui.py Traceback (most recent call last): File "/home/jubei/code/nokia/trunk/nokiagui.py", line 427, in ? gui = NewGui() File "/home/jubei/code/nokia/trunk/nokiagui.py", line 193, in __init__ button = pkylib.ComboButton(("foo","bar","baz")) File "/home/jubei/code/nokia/trunk/pkylib.py",...
5
1357
by: Joe P. Cool | last post by:
So far I have a little experience with Tkinter and wxPython. I wonder which of the numerous Python GUI kits would be the best choice for a multi platform application that makes heavy use of custom controls, 3D views and the like? Thanks in advance for your hints and advice. Joe
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.