FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DTk

 
Post new topic   Reply to topic     Forum Index -> Potential Projects
View previous topic :: View next topic  
Author Message
basp



Joined: 23 Jul 2008
Posts: 4

PostPosted: Fri Jul 25, 2008 8:32 am    Post subject: DTk Reply with quote

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
View user's profile Send private message
brad
Site Admin


Joined: 22 Feb 2004
Posts: 490
Location: Atlanta, GA USA

PostPosted: Fri Jul 25, 2008 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
basp



Joined: 23 Jul 2008
Posts: 4

PostPosted: Fri Jul 25, 2008 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
brad
Site Admin


Joined: 22 Feb 2004
Posts: 490
Location: Atlanta, GA USA

PostPosted: Fri Jul 25, 2008 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
basp



Joined: 23 Jul 2008
Posts: 4

PostPosted: Sat Jul 26, 2008 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
brad
Site Admin


Joined: 22 Feb 2004
Posts: 490
Location: Atlanta, GA USA

PostPosted: Sat Jul 26, 2008 12:07 pm    Post subject: Reply with quote

I just haven't created it yet. We do not have automated project creation yet.

BA
_________________
I really like the vest!
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Wed Jul 30, 2008 2:31 am    Post subject: Reply with quote

If they're of any use, some old files are on http://www.algonet.se/~afb/d/dtk.html
Back to top
View user's profile Send private message
basp



Joined: 23 Jul 2008
Posts: 4

PostPosted: Thu Jul 31, 2008 10:17 am    Post subject: Reply with quote

you can see example of use at http://freehg.org/u/basp/dtk/file/a8168e61f7e1/examples/simple/simple.d
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Potential Projects All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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