glade

Can't use a glade xml file with haskell

久未见 提交于 2019-12-20 23:26:20
问题 I'm not sure if I should say hi or not, being this my first post here. Anyway, I am following the glade tutorial from the gtk2hs website. The code compiled properly but when I try to execute it I get this error. (hellogtk2hs:8670): libglade-WARNING **: Expected <glade-interface>. Got <interface>. (hellogtk2hs:8670): libglade-WARNING **: did not finish in PARSER_FINISH state hellogtk2hs: user error (Pattern match failure in do expression at HelloGtk2Hs.hs:8:8-15) This is my glade file. <?xml

Python Glade could not create GladeXML Object

痞子三分冷 提交于 2019-12-18 12:57:15
问题 I've created a simple window GUI in Glade 3.6.7 and I am trying to import it into Python. Every time I try to do so I get the following error: (queryrelevanceevaluation.py:8804): libglade-WARNING **: Expected <glade-interface>. Got <interface>. (queryrelevanceevaluation.py:8804): libglade-WARNING **: did not finish in PARSER_FINISH state Traceback (most recent call last): File "queryrelevanceevaluation.py", line 17, in <module> app = QueryRelevanceEvaluationApp() File

GtkLabel alignment and padding

戏子无情 提交于 2019-12-14 02:59:07
问题 I have GtkLabel in Glade with X align set to 0, X pad set to 5, Expand set to No. Label is located under horizontal box together with spin button and another label. The problem is that X pad is applied to both, left and right side. I want it to be applied only to right side. What am I doing wrong? 回答1: Xpad is applied to both left and right. Glade 3.10 If you just want to have a margin on the right, then change Margin on the right available in the Common tab: Glade 3.8 Right click on the

Accelerators stop responding when menubar gets hidden

不问归期 提交于 2019-12-13 19:07:13
问题 I have a glade-based UI for gtk3, and I set accelerators fields for several menuitems. I'm not sure what GtkBuilder does exactly behind the scenes when it's loading the glade file (use a global GtkAccelGroup?), but the end result is, when I hide the menubar, the accelerator shortcuts stop working. I'm wondering whether there is a way of getting the accelerators working even when the menu is not visible, while still sticking to glade as much as possible. 回答1: Maybe you can try to stick the

Gtk+3 &C & Glade problems

谁都会走 提交于 2019-12-13 15:47:23
问题 I tried to make a simple Gui program with C and Glade on Linux. I wrote a simple program and design a window with Glade. When I run the code it says: (gtk-test:23026): Gtk-CRITICAL **: gtk_widget_show: assertion ‘GTK_IS_WIDGET(widget)’ failed And no Window open. I searched a bit on the internet but I cant anything helpful. Some say that I have to convert the glade file to .xml but that didn't work. C #include <gtk/gtk.h> int main(int argc, char *argv[]) { GtkBuilder *builder; GtkWidget

How can I read out the “glade ID” of a gtk3 object

99封情书 提交于 2019-12-13 14:19:17
问题 In glade it is possible to set an unique ID to an object. In the code one can obtain a pointer to this object by searching for it's "glade ID" via gtk_builder_get_object(). However for my current use-case I just want to read out this ID from an GObject. What's the API to do so ? 回答1: You can't. The builder ID is stored in the builder internally, not in the GObject. The reason for this is that IDs must be unique per builder, which would be impossible to enforce if you were able to get and set

Stetic GUI Designer Move to Glade for Gtk#3

懵懂的女人 提交于 2019-12-13 07:56:59
问题 I'm currently working at an audiobackend binding for my application. Since I want to use gstreamer, I found out, that I need to use GTK#3, because this is needed by gstreamer-sharp. Since I'm currently working with monodevelop, which uses stetic for GUI design, I wanted to ask, what is the best way, moving towards GTK#3. I see, that it uses .ui files for GUI definition, which can be generated by glade (I also tried a little bit around with glade). But my application has 4 windows with much

convert gtkglade to libglade for a backwards compatibility

和自甴很熟 提交于 2019-12-13 05:16:36
问题 I have a python gtk app that I am porting to an environment that can only use pygtk2.10. pygtk2.10 doesn't not use the gtkbuilder infrastructure but rather the libglade infrastructure I have a 2 goals 1) convert the gtkbuilder glade file format to libglade format. Basically I want to do the opposite of gtk-builder-convert (which converts libglade to gtkbuilder formats as far as I understand it) 2) find a mapping between gtk.builder functions and libglade functions to be functionally the same

GtkDrawingArea won't update when drawing happens if Glade is used

烈酒焚心 提交于 2019-12-13 03:41:46
问题 I have created very simple GTK3 C app with glade, which contains button and GtkDrawingArea (held together with GtkPaned). When button is presed, it should immediately draw a rectangle, however, it doesn't happen. It only happens, when mouse howers on GtkPaned split part (see .gif). If Glade is not used, then this problem doesn't exist. How to fix this problem? gif C code: #include <gtk/gtk.h> //==============================================================Global=variables=====================

Cannot run python on windows. What am I missing?

心不动则不痛 提交于 2019-12-13 02:49:53
问题 I am pretty new to python. Please correct me if I show stupidity. So I am trying to run the following code: from gi.repository import Gtk class LisaMainWindow: def on_LisaMainWindow_destroy(self, object, data=None): print ("quit with cancel") Gtk.main_quit() def __init__(self): self.gladefile = "lisaMainWindow.glade" self.builder = Gtk.Builder() print ("gtk builder done") self.builder.add_from_file(self.gladefile) print ("glade loaded") self.builder.connect_signals(self) self.window = self