gtk

How to configure gtk on Visual studio 2010

烂漫一生 提交于 2019-12-27 12:05:35
问题 I have tried configuring gtk+ on visual studio but doesn't work properly., Can anyone suggest me with a proper solution, as how to install gtk on Visual studio 2010 回答1: I got GTK+ working with VS2010, so if you want to get it working too, get ready for some fun, because this will take a few minutes. First of all, download the latest Windows All-In-One bundle. Optional direct download link for the GTK 2.24 bundle that I used here. The direct link is to the 32bit version. I have not tested the

How to configure gtk on Visual studio 2010

时间秒杀一切 提交于 2019-12-27 12:01:07
问题 I have tried configuring gtk+ on visual studio but doesn't work properly., Can anyone suggest me with a proper solution, as how to install gtk on Visual studio 2010 回答1: I got GTK+ working with VS2010, so if you want to get it working too, get ready for some fun, because this will take a few minutes. First of all, download the latest Windows All-In-One bundle. Optional direct download link for the GTK 2.24 bundle that I used here. The direct link is to the 32bit version. I have not tested the

Serious instability with pygtk 2.22 and python 2.6

我们两清 提交于 2019-12-25 16:54:36
问题 Has anybody come across this? I've taken the GTK HelloWorld sample. It runs fine. However, if i import win32ui , then it does not shutdown properly (as explained in this question ). There are other problems. In the process of narrowing down my application to see what caused it to not shutdown, I came upon a point where I was deconstructing a logger class I had written that I had no problems with. In the constructor I had the line: self.logger = logger I had commented out the rest of the class

Communicating with another thread

独自空忆成欢 提交于 2019-12-25 14:22:52
问题 This is how I create a thread that does domething reps times: protected virtual void RedButtonClicked(object sender, System.EventArgs e) { Nuker n = new Nuker(target, reps); bombThread = new Thread(new ThreadStart(n.nuke)); bombThread.Start(); } The thread class: public class Nuker { private string target; private int reps; //... public void nuke() { for(int i=0; i<reps; ++i) { ICBM.nuke(target); Thread.Sleep(5500); } System.Console.WriteLine("Done."); } } (I create a new class to store some

How do I set a listStore model on pre-created listbox from Glade?

馋奶兔 提交于 2019-12-25 12:49:10
问题 Apparently the "proper" way to have items in a GTKListBox or Treeview is constructing with a listStore model, in the constructor. What if I want to use Glade GUI project, in which a list box is already created, and referenced by builder.get_object("appsDocumentListBox") ? Can I set the model after Gtk.builder created the window, or is there a better way to do this? I'm also wondering what the performance improvement is of using the ListStore vs manually adding with row = Gtk.ListBoxRow() ,

How to change/switch windows using Gtk.Application Gtk+3 Glade Python?

烂漫一生 提交于 2019-12-25 12:38:26
问题 I read this tutorial- https://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html It says in the first para - Gtk.Application encompasses many repetitive tasks that a modern application needs such as handling multiple instances, D-Bus activation, opening files, command line parsing, startup/shutdown , menu management , window management , and more. How do I do startup/shutdown, window management and menu management using Gtk.Application? I could not find any tutorials, examples or

Widgets to list files with gtk

夙愿已清 提交于 2019-12-25 11:01:09
问题 I am creating an application which is going to list a bunch of files. I would like to list files like fileroller, but I don't know how. I guess I need to create a 2xn (name, size) grid, but I don't know how to make entries appear light->dark->light per line, and how to create a "fat" bar above it. Can anyone tell me what sort of widgets I need to combine to create something like that? 回答1: You probably want a GtkTreeView with a GtkListStore, that should give you everything you need. If you've

Widgets to list files with gtk

痞子三分冷 提交于 2019-12-25 11:01:07
问题 I am creating an application which is going to list a bunch of files. I would like to list files like fileroller, but I don't know how. I guess I need to create a 2xn (name, size) grid, but I don't know how to make entries appear light->dark->light per line, and how to create a "fat" bar above it. Can anyone tell me what sort of widgets I need to combine to create something like that? 回答1: You probably want a GtkTreeView with a GtkListStore, that should give you everything you need. If you've

Widgets to list files with gtk

非 Y 不嫁゛ 提交于 2019-12-25 11:00:01
问题 I am creating an application which is going to list a bunch of files. I would like to list files like fileroller, but I don't know how. I guess I need to create a 2xn (name, size) grid, but I don't know how to make entries appear light->dark->light per line, and how to create a "fat" bar above it. Can anyone tell me what sort of widgets I need to combine to create something like that? 回答1: You probably want a GtkTreeView with a GtkListStore, that should give you everything you need. If you've

How can I put my GTK application in the desktop menus?

孤街醉人 提交于 2019-12-25 09:55:33
问题 I started with programming a little time ago and I created my first running application with GTK 3.0. I did not use Glade, I do not know if worth highlight it. My code is working perfectly, but now I have a doubt, how can I make my own desktop menu application? I mean, I want that my application running up without compile in a terminal with GTK 3.0 compiler, but yes with a double click. I have been seen these examples provided by GNOME Developer Center, but I confess that did not understand