What is the best way to have transparency of specific widgets in a PyGTK application? I do not want to use themes because the transparency of each of the widgets will be changing through animation.
The only thing I can find is to use cairo to draw widgets with an Alpha, but I can't figure out how to do this. Is there perhaps a better wa...
Hey everyone,
I'm currently working on a small script that needs to use gtk.StatusIcon(). For some reason, I'm getting some weird behavior with it. If I go into the python interactive shell and type:
>> import gtk
>> statusIcon = gtk.status_icon_new_from_file("img/lin_idle.png")
Pygtk does exactly what it should do, and shows an icon...
About Gtk Dialog box Behavior...
I am using GtkBuilder +Glade to display a top level window and dialogs in it...
builder = gtk_builder_new();
gtk_builder_add_from_file( builder, "test.glade", NULL );
windowPtr = GTK_WIDGET( gtk_builder_get_object( m_builder, "window_main"));
on clicking on button i am opening one dialog box which is...
I have a requirement like follows,
in this there will be list of user names with some status icons on there left in one row...
when it receive clicked event i need to change the background color to visualize that it is selected... i tried every way but i can't put image and label together plus i don't know how to change background col...
Is it possible to embed a Gtk widget into an application using System.Windows.Forms? Thanks!
...
Any good Gtk libraries out there? I know of Holly Gtk Widgets, any other good ones out there?
Are there any good ones for menubar or toolbar ? Thanks!
...
In python, I could just do builder.connect_signals(self). It doesn't seem like this method exists in C#, and after looking at the GtkBuilder documentation, it looks like python is the exception, rather than the rule. How would I accomplish the same thing in C#?
...
Is there any quick tutorial on the net on how to get started with using gtksourceview-sharp? I have gtksourceview-sharp.dll but I can't get it to work, even when I have the libgtksourceview-1.0-0.dll in the same directory with it... Thanks!
...
In my code, I have messy things like
// Enter key
if (args.Event.KeyValue == 65293)
...
Is there any Enum I can use for this, instead of hard-coding the values?
...
I have code like this:
...
entry.KeyPressEvent += EntryKeyPressEvent;
...
}
void EntryKeyPressEvent(object o, KeyPressEventArgs args)
{
Console.WriteLine("DEBUG: KeyValue: " + args.Event.KeyValue);
...
}
EntryKeyPressEvent is called when most keys are pressed, but not the return key. Why is this?
Edit: It's act...
Hello every one,
I have added GtkMenu using following code:
// Add popup menu.
gtk_menu_popup( GTK_MENU (widget), NULL, NULL, set_position, NULL,
bevent->button, bevent->time);
And to adjust this GtkMenu under my button i have used this function:
void set_position (GtkMenu *menu, gint *px, gint *py, ...
gtk.Paned contains a style property called 'handle-size' which i assume will change the size of the handle, it's read only, so how do i change it?(in PyGtk)
...
In my code, I have lines like this:
Builder builder = new Builder();
builder.AddFromFile(gladefile);
FileChooserDialog dialog =
(FileChooserDialog) builder.GetObject("dialog");
dialog.DefaultResponse = ResponseType.Ok;
Is there a way to set the default response in the glade file, rather than doing it manually?
...
In my code, I have lines like this:
Builder builder = new Builder();
builder.AddFromFile(gladefile);
FileChooserDialog dialog =
(FileChooserDialog) builder.GetObject("dialog");
FileFilter[] filters = new FileFilter[2];
filters[0] = new FileFilter();
filters[0].Name = "Some filter";
filters[0].AddPattern("*.someextension");
filters[...
Trying to change background/foreground color....Using Gtk+ and C.
GdkColor color;
gdk_color_parse( "#0080FF", &color );
gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_SELECTED, &color );
gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_NORMAL, &color );
I am using above functionality but it is not giving any results.
...
I am trying to disable/inactive some of menu items under GTK+...
I have created Menu In GTK+Glade under C.
and on some external event i need to disable some of the menu options...
hot to do this?
...
I would like to develope a databased GUI application for free, which is cross-platform. I almost decided, that the UI should be GTK (logical, not pixel-based layout, GUI description not cluttering the code (glade xml))...
What I am missing is a good framework, which connects database and GUI, so I am looking for building database gui ap...
I have a textview and when something is pasted into it from the clipboard I need to intercept that text and do some preprocessing on it before it ends up in the textview.
I've tried listening to the "PasteClipboard" event which doesn't give me a way to modify the incoming text. and the "textview.Buffer.Changed" event which fires after t...
I've just installed the GTK+ Glade 3.6.7 designer on Windows XP and there are no icons in the palette. I can select small icons or large icons from the view menu but neither will show. I just get red X images. The toolbar icons do show.
...
I'm creating a application with panes in Ruby/Gtk. When the panes are resized, I need to do some stuff. But I cannot figure out which signal to use. I think it is 'accept_position' - but it don't seem to work. This is a sample app that illustrates my problem...
#!/usr/bin/env ruby
require 'gtk2'
window = Gtk::Window.new(Gtk::Window::T...