gtk

Python Widget/GUI framework [closed]

空扰寡人 提交于 2019-12-25 08:22:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What is the best framework to use for building the GUI on a python widget? I'm currently using gnome 3, but would prefer it to be independent of the desktop environment. 回答1: I have used the 3 following toolkits. wxPython is a popular choice. It supports Windows, Mac and Linux but may be tricky to install on

how do i build system in Sublime Text 3 C++ and Gtk+

China☆狼群 提交于 2019-12-25 07:26:50
问题 I want to build a simple text editor using C++ and Gtk+ in Sublime Text 3. Using Gtk+ for a cross-platform application. For now I'll be satisfied with a simple window, though ST3 keeping popping problems. I'm currently running Windows 7 64Bits. At first I downloaded the gtk+-bundle_3.10.4 64bit to C:\gtk+ and downloaded MinGW - installing gcc-g++ for C++ . Then I updated Environment Variables -PATH with the folder C:/MinGW/bin;C:/gtk+/bin;... and other paths, as suggested Here. Now to "build

Consume a webservice with basic authentication using Soup

好久不见. 提交于 2019-12-25 07:05:54
问题 As part of a gnome-shell extension, I try to consume a webservice using xmlrpc. The webservice expects a basic authentication header. Using Soup, I got the following code (basically a blueprint from the great openweather extension): function load_json_async() { if (_httpSession === undefined) { _httpSession = new Soup.Session(); } else { // abort previous requests. _httpSession.abort(); } let message = Soup.xmlrpc_message_new ( "https://api.sipgate.net/RPC2", "samurai.BalanceGet", new GLib

How deal with FileChooser in GTK with static compilation

99封情书 提交于 2019-12-25 06:59:59
问题 I have to create one-file (.exe) program. In this program user can choose directory from his computer. I create program in order of http://www.tarnyko.net/en/?q=node/31 and it run well. But when I invoke FileChoser (click on button) I got this error GLib-GIO-ERROR No GSettings schemas are installed on the system Response of Tarnyko to this issue is in coment on webpage - this is known "bug" with static compiling. How can I work around this? On the one hand I have to have one-file.exe. On the

Difficulty in editable GtkTreeView

丶灬走出姿态 提交于 2019-12-25 05:51:13
问题 I am writing a piece of software where my user should be able to add data to a table-like editing widget, which I managed to render by using a GtkTreeView . I was able to render my cell editable by setting its editable property via this call g_object_set(content_renderer, "editable", TRUE, NULL); However, my GtkTreeView not only doesn't retain values entered as it's not even showing the data I've added before rendering. I saw a few examples in the web where the developer manually set the user

How can i create a textarea that has read and write lines using gtk

為{幸葍}努か 提交于 2019-12-25 05:03:15
问题 Any one know how i can create a text area which displays lines of text which can not be edited but allows you to edit the bottom most line for text. basically in a similar fashion to embedded consoles inside applications that allow you to run code direct on the application. currently using a textview i can go and edit the code above and the output response are also editable. 回答1: It's possible using a GtkTextView , but not trivial. You have to create a tag that makes the text uneditable, and

Connecting signals in GTK+: anonymous way?

别说谁变了你拦得住时间么 提交于 2019-12-25 04:55:07
问题 After reading "Using your signals" I am wondering if it is possible to connect the signals to "sinks" in an "anonymous" way? In order words, if the example following (snippet from reference above): aCar = Car() aCar.connect('engine-started', myCallback) Is it possible just to connect myCallback to all the signal engine-started sources in one go? Something along the lines of: gbus.connect('engine-started', myCallback) Of course gbus here is just an example. 回答1: Yes, you can use gobject.add

Glade and deprecated gtk properties

家住魔仙堡 提交于 2019-12-25 04:27:33
问题 i've been trying to run a software where i've built the UI by Glade. Glade then transform the UI in an XML file, and then in Python i just load that file. But i've a problem with (maybe) deprecated properties of gtk objects. This is what the interpreter says: Unknown property: GtkScrolledWindow.min-content-width self.__builder.add_from_file('UI2.glade') /home/jimmy/Documenti/linguaggi_dinamici/progetto/collega_GUI.py:37: GtkWarning: Unknown property: GtkScrolledWindow.min-content-height self.

RInside with Qt, GTK+ or Tcl [closed]

主宰稳场 提交于 2019-12-25 03:26:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . My question is: Do you know what toolkit between Qt, Gtk+ or Tcl/tk is better to develop an app with RInside? I think I can do it with any of them, but I just find examples of RInside using Qt. Can I use, for example, Gtk or Tcl/tk also?, and... What do you think is the best

How do I add item to Pidgin menu

风流意气都作罢 提交于 2019-12-25 02:56:05
问题 I want to add arbitrary item to Pidgin menu. Let it be Buddies → Show → Groups . I want it to be checkbutton (like Buddies → Show → Empty Groups ) with custom function associated. How can I do this? In Pidgin 2.10.9 In Pidgin 3.0.0 (development branch) 回答1: The following example is for Pidgin version 2.10.9. I believe there are not many changes in 3.0.0 (current development branch) so it will be applicable there too with minimal modifications. First of all, download Pidgin sources. In Ubuntu