473,739 Members | 8,690 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 1610
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
10192
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
2600
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
2038
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
1473
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
4280
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
13370
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
1774
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
1407
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
1784
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
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8794
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9483
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
9341
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
9269
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
6756
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
4572
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...
1
3282
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
2748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.