473,890 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PyGTK overload

As a newby to PyGTK I already have produced some gui's I like,
but I have difficulties in finding out what method or other instrument
I need for doing various things.

I have not yet found the tutorial or otherwise that explains concepts
like setting (relative) sizes, setting or manipulating focus,
setting colors, etc.

Also when I think I need a method with a specific word it its name,
and I cannot find it, there are two (not necessarily exclusive)
possibilities:
- I have to go higher up the ancestry
- I look for the wrong word

Is there an other way than just going on and become familiar with it ?

egbert
--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
=============== =============== =============== =============== ============
Jul 18 '05 #1
5 1628
Egbert Bouwman wrote:
I have not yet found the tutorial or otherwise that explains concepts
like setting (relative) sizes, setting or manipulating focus,
setting colors, etc.


Have a look at the PyGTK tutorial and reference:
http://www.pygtk.org/pygtk2tutorial/index.html
http://www.pygtk.org/pygtk2reference/index.html
and here's a list of articles about PyGTK:
http://www.pygtk.org/articles.html
If you haven't allready done so, be sure the try out Glade, a GUI
builder for (Py)GTK.

-Julien
Jul 18 '05 #2
On Sat, Jul 31, 2004 at 04:42:52PM +0200, Julien Poissonnier wrote:
Egbert Bouwman wrote:
I have not yet found the tutorial or otherwise that explains concepts
like setting (relative) sizes, setting or manipulating focus,
setting colors, etc.
Have a look at the PyGTK tutorial and reference:
http://www.pygtk.org/pygtk2tutorial/index.html
http://www.pygtk.org/pygtk2reference/index.html
and here's a list of articles about PyGTK:
http://www.pygtk.org/articles.html


Yes, I know them , and I am busy reading, using and digesting them,
not too much at a time, and they made possible what I have done so far.
Virtual beers for the authors.
But these texts are the core of my problem as well.
I need something that goes at right angles through them,
linking the related subjects, and giving an overall picture.
If you haven't allready done so, be sure the try out Glade, a GUI
builder for (Py)GTK.
Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?

egbert -Julien
--
http://mail.python.org/mailman/listinfo/python-list


--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
=============== =============== =============== =============== ============
Jul 18 '05 #3
> Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?


I agree that using Glade may be put off until you understand how things
would be done 'by hand'. But, when experimenting with GUI layouts, it is
useful to do the experimentation with Glade rather than by editing
scripts. Also, playing with Glade gives you a good idea of the widgets
available in the toolkit and how they should be composed.

If you have not already discovered it, check out pygtkconsole.py :

http://aspn.activestate.com/ASPN/Coo...n/Recipe/65109

It lets you build/manipulate GUIs from an interactive python prompt.
Jul 18 '05 #4
P
Egbert Bouwman wrote:
Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?


Unless you need to construct the interface
at run time (for e.g. creating arrays of buttons),
just let libglade create the interface for you.
You gain nothing by doing this drudgery yourself.

Pádraig.
Jul 18 '05 #5
P
Egbert Bouwman wrote:
Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?


Unless you need to construct the interface
at run time (for e.g. creating arrays of buttons),
just let libglade create the interface for you.
You gain nothing by doing this drudgery yourself.

Pádraig.
Jul 18 '05 #6

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

Similar topics

6
10210
by: Edwin Young | last post by:
Hi, I'm writing a fractal-generating program in a mixture of C and Python. Python handles all the GUI parts using PyGTK. After finishing the calculations, I have a buffer containing the RGB data of the image. I can display this fine on screen using draw_rgb_image. Now I need to save the image data into a file. gtk.gdk.Pixbuf.save() would be ideal, but I'm stumped trying to create a Pixbuf from my image data. In C,...
4
2608
by: j_mckitrick | last post by:
Hi all. Here is a tiny container for one of each combo box, along with the glade file. Just 2 widgets, so hopefully not too large. How the heck do I get the selection from the ComboBox, as opposed to the ComboEntryBox? I'm pulling my hair out over this one! jonathon
6
2048
by: Mark Mitchell | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a program written in python that tells me it requires PyGTK, so I DLed, ./configure, make, make install and the process seems to go ok. Some errors but the process finishes so I assumed they weren't fatal errors. So now I attempt to run my python program and I get; $ gccp.py Traceback (most recent call last):
1
1483
by: Thomas Bartkus | last post by:
I am experimenting (flailing around?) with glade and python. Both under MS Windows and Linux. I understand why I want to "import gtk" It gives me access to the critical gui program loop gtk.main() and main_quit() I am also very grateful for import gtk.glade This lets me open my xml format glade file
25
4301
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK on Windows "(...) > can i use pyGTK under > Windows???
14
13379
by: Rod W | last post by:
I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? I'd prefer open source (not necessarily GPL though) tools. Rod
1
1786
by: krishnakant Mane | last post by:
hello, I will be writing some code in PyGTK to run on linux. but I want to know if there are any installers or distutils available for PyGTK on windows? I have heard that installing gimp or even pygtk is next to impossible and is very tedious if at all one gets success. can any one share their experiences with installing and running pygtk on windos? any links for downloading proper packages will be highly appreciated. regards,...
0
1419
by: He Jibo | last post by:
Hi, Everyone, Could someone help me how to install pygtk? I get some problems with it. Here is the error I get while install pygtk: https://netfiles.uiuc.edu/jibohe2/error.GIF?uniq=-k6678k I use python 2.4, I first installed glade-2.0.1-win32_with_gtk, and then pycairo-1.0.2-1.win32-py2.4, pygobject-2.12.3-1.win32-py2.4, and
0
1789
by: Michael Palmer | last post by:
On Sep 16, 12:30 pm, binaryjesus <coolman.gu...@gmail.comwrote: I haven't tried it myself, but I came across a blog post the other day that describes a way of building windows installers for pyGTK applications at http://unpythonic.blogspot.com/2007/07/pygtk-py2exe-and-inno-setup-for-single.html
0
11222
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
10810
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...
0
10460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8015
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
7169
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
5845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4674
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
3
3275
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.