01.08.2013 10:09, Yann Leboulanger wrote:
On 08/01/2013 02:00 AM, Osmo Salomaa wrote:
style.lookup_color("theme_base_color") returns a 0, 0, 0, 0 color here.
OK, so that's theme-specific.
Some color names might be available regardless of theme, but I don't
know whi
ly don't know if they work across different themes.
[1]
https://git.gnome.org/browse/gnome-themes-standard/tree/themes/Adwaita/gtk-3.0/gtk-main.css
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinf
d/or
> Gio?
>>> from gi.repository import GObject
>>> GObject.pygobject_version
(3, 2, 2)
And since there is no PyGLib or PyGio, you don't do the same for those.
PyGObject provides the bindings for GObject, Gtk, GLib and any o
ith a simple Gtk.RecentData() call, but I don't know
how to set values for its fields.
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
26.02.2012 13:20, Timo wrote:
> Callback works ok here, well, after removing everything after the print
> function. Ubuntu 11.10 with GTK 3.2.0 and PyGObject 3.0.0.
Thanks. I guess I better file another bug report.
--
Osmo Salomaa
___
pygtk m
eveloper.gnome.org/gtk3/3.3/ch25s02.html
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
estDefaults.ALL,
[Gtk.TargetEntry.new("text/uri-list", 0, 0)],
Gdk.DragAction.COPY)
window.connect("drag-data-received", lambda *args: print(args))
window.resize(500, 500)
window.show_all()
window.connect("delete-event", Gt
ing to
insert "åäö." instead of "åäö" doesn't give a warning, but doesn't
insert the period.
Is this related to the string type changes in Python 2->3? Can I expect
Python 3 and non-ASCII text to work in general with PyGI? I'm using
Python 3.2 and PyGObject 2.
e of
breakage with new versions of GTK+ if you have to write the rendering
etc. code yourself -- I stumbled on this a couple times. Can you get the
'on-activate' signal if you subclass gtk.CellRendererPixbuf?
--
Osmo Salomaa
___
pygtk mailing
ose
should allow you to handle the common cases of single and double left
click events and corresponding keyboard events. There's also
gtk.Widget's 'button-press-event' etc., coordinates from which you can
convert with gtk.TreeView.get_path_at_pos.
--
Osmo Salomaa
__
els, I also do obj.set_title(_(obj.get_title())) to translate all
window titles.
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
uilder case it still doesn't work, but
that may be some gtk-builder-convert error or some string extraction
error, I'm sure I'll figure it out now.
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/li
s only for defining the domain. How do I set the directory where to
search for translations to strings in GtkBuilder XML files?
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK
As promised, here's code for a multiline text cell renderer that
deprecates my old post [1] (as long as you're not using an antiquated
version of PyGTK). Shift+Enter or Control+Enter can be used for a
linebreak, plain Enter will end editing.
— Osmo Salomaa
[1] http://www.
You can
subclass gtk.CellRendererText directly. You just need to define
'do_start_editing' method and forget about all the rendering methods in
that gtk.GenericCellRenderer subclass.
This is not the first time I've received a question about that old post.
I'll try
cus.
Basically, I'd want the propagation to work the other way around.
[1] http://faq.pygtk.org/index.py?req=show&file=faq03.011.htp
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
nal plugin, which sets the
vte properties to match those defined for gnome-terminal in gconf.
http://svn.gnome.org/viewvc/gedit-plugins/trunk/plugins/terminal/
--
Osmo Salomaa <[EMAIL PROTECTED]>
___
pygtk mailing list pygtk@daa.com.au
http://www.da
he row number to update
automatically after whatever changes in the list store.
def set_row_number(column, renderer, store, itr):
renderer.props.text = store.get_path(itr)[0] + 1
column.set_cell_data_func(renderer, set_row_number)
--
Osmo Salomaa
_
s not work in
some cases or that it breaks in future versions of GTK?
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
)
Can I do this with PyGTK? Or is there perhaps another way to change the
x- and ythicknesses of individual buttons?
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async
return
window.set_cursor(NORMAL_CURSOR)
However, this is painfully slow! Maybe someone knows a better way?
--
Osmo Salomaa <[EMAIL PROTECTED]>
___
pygtk mailing list pygtk@daa.com.au
http://
t? Would they
as well be forced to use the same theme?
--
Osmo Salomaa
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
s the part that needs modification.
Thanks,
Osmo Salomaa
#!/usr/bin/env python
import gtk
fcbutton = gtk.FileChooserButton('Select File')
def on_clicked(*args):
fcbutton.activate() # Does not work.
button = gtk.Button('Activate file chooser button')
button.connect(
I didn't manage to subclass CellRendererText but I got the job done the hard
way with GenericCellRenderer. Below is the code for an editable multiline text
cell renderer.
If you try it, use shift/ctrl/alt + return/keypad enter for linebreaking while
editing the text in a cell.
It seems to work
I've been reading some old posts on the list about problems with
creating custom cell renderers.
After those posts has happened the following:
"ANNOUNCE: PyGTK 2.6.0
...
GInterfaces can now be implemented.
Overriding GTK+ virtual methods is now supported."
If I understood correctly these two were
25 matches
Mail list logo