[pygtk] Sample code with draw_rgb_image !
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
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 ?
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
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
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 )
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
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 ?)
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?
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!!??-
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 )
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 )
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 !?
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
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
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
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
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 !?
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
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
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]