On Wed, Jun 30, 2010 at 14:41, Francesco Fumanti
<[email protected]> wrote:
> Hi,
>
> What do you mean by "In the realize callback"; the __init__ in the window
> class (derived from gtk.window) used for the onscreen keyboard? I tred to
> put the flag that you suggested there, but it did not help. (Moreover, the
> window was without decoration. )
In __init__ you add:
self.connect('realize', self._realize_cb)
and then add this method:
def _realize_cb(self, widget):
self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DOCK)
Taken from
http://git.sugarlabs.org/projects/sugar/repos/mainline/blobs/master/src/jarabe/frame/framewindow.py
Regards,
Tomeu
> Thanks nevertheless for telling me your idea.
>
> Francesco.
>
> On 06/30/2010 02:02 PM, Tomeu Vizoso wrote:
>>
>> On Wed, Jun 30, 2010 at 12:03, Francesco Fumanti
>> <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> Thanks for your reply.
>>>
>>> Onboard already users that flag but unfortunately it does not keep it
>>> above other applications. However, onscreen keyboard users usually don't
>>> have access to a hardware keyboard, it is important for the onscreen
>>> keyboard to remain available also when a nother application goes fullscreen.
>>>
>>> Does anybody have any idea about how to achieve it?
>>
>> Maybe you this?
>>
>> self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DOCK)
>>
>> (In the realize callback)
>>
>> Regards,
>>
>> Tomeu
>>
>>> Best regards,
>>>
>>> Francesco.
>>>
>>> On 06/29/2010 11:01 AM, Cornelius Kölbel wrote:
>>>>
>>>> Hi Francesco,
>>>>
>>>> the gtk widget got a "set_keep_above".
>>>>
>>>> splash.set_keep_above(True)
>>>>
>>>> I am not sure at the moment, if it will also keep it above other
>>>> applications...
>>>>
>>>> Kind regards Cornelius
>>>>
>>>>
>>>> Am 29.06.2010 10:48, schrieb Francesco Fumanti:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Onboard is an onscreen keyboard that is written in python and that
>>>>> uses gtk. I would like it to remain visible also when there is
>>>>> another application that goes fullscreen. Could anybody please tell
>>>>> me whether this is possible and how to do it; or point me to some
>>>>> documentation about how to achieve it?
>>>>>
>>>>> Many thanks in advance,
>>>>>
>>>>> Francesco. _______________________________________________ pygtk
>>>>> mailing list [email protected]
>>>>> http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:
>>>>> http://faq.pygtk.org/
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________ pygtk mailing list
>>>> [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read
>>>> the PyGTK FAQ: http://faq.pygtk.org/
>>>
>>> _______________________________________________
>>> pygtk mailing list [email protected]
>>> http://www.daa.com.au/mailman/listinfo/pygtk
>>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>
>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/