[pygtk] Sample code with draw_rgb_image !

2000-11-08 Thread abouf066

Greetings, 

Does anybody have a sample code calling draw_rgb_image or
draw_rgb_32_image ? 

At first sight, it seems simple but I it always complains about the buffer
argument. Is "buffer" a special Python data type or is it just a list of
holding integer values (Thta is what I assumed so far!)

Thanks 

_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] Put 'Delete key' as an accelerator in menu bar

2000-08-30 Thread abouf066

Greetings,

Is there a way to add the Delete key (as an accelerator) menu bar. 

I tried 'del', 'del', 'delete', 'delete' but with no success !

Thanks all

_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] fixed size font ?

2000-08-09 Thread abouf066

Greetings, 

Can anybody suggest a fixed size font (the "syntax" seems to be awkward). 

Why : 

I have this text viewer in my app which is supposed 
to be used to examine some generated ascii files (containing columns of
numbers). 

Thanks 

_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] fixed size font

2000-08-09 Thread abouf066


Greetings, 

Can anybody suggest a fixed size font (the "syntax" seems to be awkward). 

Why : 

I have this text viewer in my app which is supposed 
to be used to examine some generated ascii files (containing columns of
numbers). 

Thanks 

_

LaBoufarikoise






___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] changing colors of container type widget

2000-08-07 Thread abouf066

Greetings,

Wonder if anybody could tell me which steps should I follow to
change the bg/fg color of container type widgets ?

I know how to get style ( myWidget.get_style() ) but after this step, it
seems that fg, bg, ... cannot be changed !?


Thanks all

_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] GtkOptionMenu : ( How to get the text of the selected option )

2000-06-29 Thread abouf066

Hi,


Is there any way allowing one to get the text displayed by an
option menu ?

Thanks all


_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: [pygtk] Unable to Create a dialog box

2000-06-13 Thread abouf066

Hi Philip, 

You have 3 different types of windows which are identified by : 
WINDOW_TOP_LEVEL = 0
WINDOW_DIALOG= 1
WINDOW_POPUP = 2

So 2 means that you requested a pop-up window.


_

LaBoufarikoise


On Tue, 13 Jun 2000, Phillip Ezolt wrote:

 Hi,
   With pygtk-0.6.6  gtk+-1.2.7, I can't seem to create a dialog box.
 
 The following piece of code: 
 
 #!/usr/bin/env python
 from gtk import *
 AboutPhoenix=GtkDialog(WINDOW_POPUP)
 print AboutPhoenix.__dict__
 AboutPhoenix.set_title("About Phoenix")
 
 Yields the following error:
 [ezolt@pulitzer phoenix2]$ ./hello2.py
 {'_o': 2}
 Traceback (innermost last):
   File "./hello2.py", line 7, in ?
 AboutPhoenix.set_title("About Phoenix")
   File "/usr/lib/python1.5/site-packages/gtk.py", line 843, in set_title
 _gtk.gtk_window_set_title(self._o, title)
 TypeError: gtk_window_set_title, argument 1: expected GtkObject, int found
 
 
 I've done some digging, and it appears that _gtk.gtk_dialog_new() is
 returning '2'. 
 
 What does '2' mean? 
 
 Thanks,
 --Phil
 
 Compaq:  High Performance Server Division/Benchmark Performance Engineering 
  Alpha, The Fastest Processor on Earth 
 [EMAIL PROTECTED]|C|O|M|P|A|Q|[EMAIL PROTECTED]
 --- See the results at www.spec.org ---
 
 
 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] set_wmclass (what is it ?)

2000-06-09 Thread abouf066

Greetings,

Wonder if anybody could tell me what's this call is supposed to
achieve on a given window .

Thanks all

_

LaBoufarikoise



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: [pygtk] Get text from a label?

2000-06-09 Thread abouf066


try : 

x = GtkLabel("what-ever")
x.get() should give back the string

_

LaBoufarikoise


On Fri, 9 Jun 2000, Phillip Ezolt wrote:

 How do I retrieve text from a GtkLabel? 
 
 I can set it with set_text(), but I can't find out how to retrieve it.
 
 Thanks,
 --Phil
 
 Compaq:  High Performance Server Division/Benchmark Performance Engineering 
  Alpha, The Fastest Processor on Earth 
 [EMAIL PROTECTED]|C|O|M|P|A|Q|[EMAIL PROTECTED]
 --- See the results at www.spec.org ---
 
 
 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: [pygtk] Drag'n Drop under WinNT -does not work!!??-

2000-05-26 Thread abouf066

Greetings all, 

I am trying some drag'n drop stuff under WinNT, but it seems
that my connect('drag_data_get', cbF) does not work . I tried to run 
the testgtk.py file but with the same result - namely no DnD action-

Is there any turn around to this problem.

Thanks a lot

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] toolbar ( Is it possible to add args )

2000-05-24 Thread abouf066

Greetings,

I am setting up a toolbar but I was not able to pass the args
needed by the callback function. I am using for this purpose the function
: 
append_item(act, zeTip, GtkPixmap(pix, mask), cbFunc, 'hello')

My argument 'hello' is not accepetec by append_item. (BTW under C 
the file gtktoobar.h, shows a function append_item that can accept a
gpointer user_data)

Thanks for your help and time
_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] Alignment ( any example )

2000-05-19 Thread abouf066

Greetings all,

I was wondering wether anybody has few lines of code illustrating
the use of alignement .


Thanks all

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] How to let the WM know !?

2000-05-15 Thread abouf066

Hi all,

Thanks for your precious help. Unfortunately, my problems are not 
over yet !?

I am creating a dialog window, which might be moved around and resized by
the user. In theory this means that  the user has her/his own reasons in
doing so. 

Here is my problem : 

-1- I popup the window to select my options. Resize my window and
moving it to a "good" location.

-2- I hide my window

-3- I bring it back 

Step -3- is problematic. When my window is "brought back to life"
(with a show), it comes back with the "default" settings ( initial size
and location) as if it were the first time it shows up !!


My guess, the WM should be able to take care of  this problem, but HOW!?!?

Thanks for your time and help.


 _

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



No Subject

2000-05-15 Thread abouf066

Hi James,

A small question for you. How can I put aguments for the callback
function appearing in create_items ( defined in GtkItemFactory.)



Thanks for your time and help
_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] Keeping a window on top of the other

2000-05-13 Thread abouf066

Hi all,

I have this dialog window which for which I enforce modal by using
grabb_add(myWin). However, this solution does not prevent the "parents" to
cover it. Is there a way to keep the dialog window ALWAYS on top of others
until the dialog is completed ?

Thanks for your time and help

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] Is it possible to get un-resize a window

2000-05-11 Thread abouf066

Hi all,

Here is my new problem :

I create a window and I allow the user to resize it. Is there a
way to get back the old original size (using some kind of signal or
something else). 

Thanks for your time and help

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] Position of windows

2000-05-10 Thread abouf066

Hi,

I wonder if there is a flag which when set allows a window to
have it upper left corner at the position of the mouse . 

for instance, myWindow.set_position(WIN_POS_MOUSE) puts  the newly created
window on the mouse (but this covers the parent window !!)

Thanks all
_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] How to add GtkRadioMenuItem to ItemFactory !?

2000-05-09 Thread abouf066

Greetings,

I have finally created a menu using GtkItemFactory. 
Second step, in some of the items, I would like to insert RadioMenuItems
for some mutuallu exclusive options ?

Examining the inheritance hierarchy does not seem to allow me doing this.
Is there any way that could be suggested to solve this problem. 


Thanks a lot
_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] add_entries in MenuFactory

2000-05-08 Thread abouf066

Greetings,

Does anybody know how to put underscores under a selected letter
of the items in a menu bar ? (You know the now traditional _File
-underscore under F- means altF should pop-down the File menu...

By the way I do not want to add an explicit accelerator which will yield
to ALT+ Whaterver in the menu


Thanks all 

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] First question : Any tutorial on PyGTK available

2000-05-02 Thread abouf066

Greetings all, 

This is my first post to the list. 

Is there any tutorial~(online) and preferably with sample code so
as to get started




_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]