View previous topic :: View next topic |
Author |
Message |
basp
Joined: 23 Jul 2008 Posts: 4
|
Posted: Fri Jul 25, 2008 8:32 am Post subject: DTk |
|
|
DTk is a simple library to connect D with tcl/tk. The main idea of DTk is close to Ltk(Common Lisp bridge to wish).
Example screenshot(with `package require tile` and tileqt): http://i.piccy.kiev.ua/i2/2a/cc/bf95d80af1a44dfdf97659ac6753.png
Maybe someone found it useful...
Source example:
//.........
auto tk = new TileQt("localhost",8000,8001); // 8000 - port to data socketstream, 8001 - port to event socketstream
tk.debug_mode(true);
with(tk)
{
auto bar = frame(root); // the first argument is always a parent
auto fradio = radioframe(bar);
auto r1 = radiobutton(fradio, "fried", "1");
auto r2 = radiobutton(fradio, "stirred","2");
auto r3 = radiobutton(fradio, "cooked", "3");
foreach(r;[r1,r2,r3])
command(r, delegate void(Widget) { // bind delegate with button pushing
writefln(fradio.value()); // radioframe keeps one value for the all included radiobuttons
});
// .......
auto e = entry(bar);
auto b2 = button(bar, "get!", delegate void(Widget) {
writefln("content of entry:", e.value());
});
auto b3 = button(bar, "set!", delegate void(Widget) {
e = "{test of set}"; // opAssign send query to the server
});
//.........
pack(f, "-fill x -side left");
pack("-side left",l,b1,e,b2,b3);
mainloop(); // event handling loop
}
//....... |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Fri Jul 25, 2008 2:12 pm Post subject: |
|
|
So, do you want me to set up a new project? If so, I'll need to know if you want svn, hg, or git for source code control.
BA _________________ I really like the vest! |
|
Back to top |
|
|
basp
Joined: 23 Jul 2008 Posts: 4
|
Posted: Fri Jul 25, 2008 2:21 pm Post subject: |
|
|
brad wrote: | So, do you want me to set up a new project? If so, I'll need to know if you want svn, hg, or git for source code control.
BA |
I wrote a mail with the request a couple days ago. Hg, if you please |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Fri Jul 25, 2008 2:28 pm Post subject: |
|
|
damn, my spam filter is being a bit over-zealous recently. Sorry I didn't see it. Got it now. _________________ I really like the vest! |
|
Back to top |
|
|
basp
Joined: 23 Jul 2008 Posts: 4
|
Posted: Sat Jul 26, 2008 12:00 pm Post subject: |
|
|
brad wrote: | damn, my spam filter is being a bit over-zealous recently. Sorry I didn't see it. Got it now. |
Is something wrong with the request? What should i do to register project? |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Sat Jul 26, 2008 12:07 pm Post subject: |
|
|
I just haven't created it yet. We do not have automated project creation yet.
BA _________________ I really like the vest! |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
|
Back to top |
|
|
basp
Joined: 23 Jul 2008 Posts: 4
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|