使用Tk的用C [英] Using Tk with C
问题描述
我是一个C程序员,没有欲望对付C ++工具包,和我想要建立一个简单的图形卡的游戏。我的编程Linux下,但我希望有一个Windows端口的选项。从我读过,我的选择是GTK +和Tk。
I’m a C programmer with no desire to deal with C++ tool-kits, and I’m trying to build a simple graphical card game. I’m programming under Linux, but I’d like to have the option of a Windows port. From what I’ve read, my options are GTK+ and Tk.
我通过一些GTK +教程的工作,我可能会与坚持,但我不认为我给Tk的一个公平的机会。麻烦的是,所有的Tk的文档可以找我或者是使用与塔卡{TCL,红宝石,Perl和Python的},或者嵌入一个Tcl间preTER到C程序,并使用传统知识的方式。有没有办法使用Tk的搭建一个C程序的GUI没有题外话进过多的Tcl容易(-ish)的方式?
I’m working through some GTK+ tutorials, and I’ll probably stick with that, but I don’t think I’m giving Tk a fair shot. Trouble is, all the Tk documentation I can find is either for using Tk with {Tcl, Ruby, Perl, Python}, or for embedding a Tcl interpreter into the C program and using Tk that way. Is there an easy(-ish) way to use Tk to build GUIs for a C program without digressing too much into Tcl?
在理想情况下,是否有一个教程(沿 TkDocs Tk的教程东西线),但使用类似 C API ?
Ideally, is there a tutorial (something along the lines of the TkDocs Tk Tutorial) but using something like the Tk C API?
推荐答案
下面是一些有用的链接:
Here are some useful links:
这篇关于使用Tk的用C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!