[pygtk] Re: [iPAQ] No Title

2001-01-10 Thread Jim Gettys


> Sender: [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> Date: Mon, 8 Jan 2001 14:14:33 -0600
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: [iPAQ] No Title
> -
> I've compiled, python 2.0 and pygtk 0.6.6 for the compaq iPAQ (a small
> handheld device that runs X and includes libgtk ATM) and except for a small
> 
> problem things run great :-)
> 
> Now, onto the problem :-)
> 
> The problem is: I don't get any titles on windows. I think the problem is
> isolated to xlib, pygtk and/or gtk.
> 
> If I remotely display the program from the ipaq to a workstation I don't
> get
> titles...
> 
> If I remotely display a program running from my workstation to the iPAQ I
> do
> get a title on the window.
> 
> I am using testgtk.py as a sample program.
> 
> Can anyone help track this down?

The first thing to do is to see if, running the same python program on
your workstation to your ipaq, you do or do not get a title on your screen.

You can see if applications are properly setting the titles by seeing if
a reasonable name property is set on the window: the xprop program can
be used to see the properties set on the window.

Window managers sometimes have provisions for not putting titles on certain
windows, but I'd be surprised if that were happening (for example, twm
is configured on the iPAQ to suppress the titlebar on the oval clock).
- Jim

--
Jim Gettys
Technology and Corporate Development
Compaq Computer Corporation
[EMAIL PROTECTED]


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



Re: [pygtk] Window decorations

2001-01-10 Thread Martin Grimme

> Is there any way using pytk to request a window manager not dress a
window 
> with decorations (like title bar, close widgets, etc). You can do this
> under 
> regular x programming with playing with override_redirect or with Xt apps
> by 
> specifying a -Xrm command line (or modding the x resources another way).

Hello,

window = GtkWindow(WINDOW_POPUP)

should help (with most window managers).

Bye, Martin Grimme - http://www.pycage.de


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



Re: [pygtk] Alpha channels in GtkPixmap

2001-01-10 Thread Martin Grimme

> I'm having problems using a GtkPixmap to display the icon for an image in

> the Gnome panel. I have created a pixmap using Gimp which is transparent
> and 
> wish to display this as the icon. The problem is that the icon never gets

> displayed with the proper transparency information (alpha channel).

Hello,

I once discovered a similar problem with GdkImlib. It simply did not want
to load the alpha channel. The problem is somehow depending on the
currently installed GTK-theme (weird, I know), where a certain type of
entry has to be.

My simple workaround is this at the beginning of the program:

  rcstring = """
  style "trans" {
engine "pixmap" {}
  }
  class "GtkWindow" style "trans"
  """
  rc_parse_string(rcstring)

It works well for me.

I hope it works for you, too.

Bye, Martin Grimme - http://www.pycage.de


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



Re: [pygtk] how to suppress vertical stretch of button packed intohbox

2001-01-10 Thread Tony Seward

On Tue, 9 Jan 2001, Evan Martin wrote:

>
> On 2001.01.09 12:59:37 -0800 George Young wrote:
> > I do hope to find a solution that does not require such extra widgets,
> > (even though I know boxes are light-weight).
> > My application tends to stretch the limits of X performance -- if some
> > accursed user
> > decides to open up all ~800 steps, each with one of these togglebuttons,
> > this solution
> > adds yet another 800 boxes to the mess...  Maybe I should try growing
> > potatoes instead.
> ^ intentional? :)

Of course it was intentional.  It is the correct spelling.  See
http://www.m-w.com/cgi-bin/dictionary?va=potatoes

>
> Generally, if that becomes an issue, it'd be better to redesign your UI.
>
>


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