python - Theming GTK CSS doesn't work properly -


i have python/gtk+3.0 application following layout

gtk.window   gtk.box     customclass : gtk.scrolledwindow       gtk.viewport # created automatically         gtk.grid           gtk.box # many of         gtk.scrollbar # created automatically         gtk.scrollbar # created automatically 

now i'm triying theme it, doesn't work, want change background of customclass want change css.

i'm trying:

#customclass, #customclass > gtkbox, #customclass > gtkviewport, #customclass > gtkgrid, gtkscrolledwindow gtkgrid {   background-color: #000; } 

where can find reference theming? when in themes installed in system see things like

.custom-class { /* ... */} gtksomething.custom { /* ... */} 

how apply kind "class" selector elements code , glade, i'm using both.

you can give object, implements customclass, name, can selected name. this:

main_scrolled_window = customscrolledwindow() main_scrolled_window.set_name('main_scrolled_window') 

then, in css:

''' #main_scrolled_window{     background-color: #f3f3f3; } ''' 

it not bad this, event though don't know how theme custom widget class directly.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -