May 11, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | GC cleans up for you. Usually this won't happen because uniqueData is likely to be in data section and callback is likely to be a member of a widget used elsewhere. But if they aren't, GC will free them and you end up with dangling pointers in CommandArgs. |
May 11, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Sunday, 11 May 2014 at 14:04:44 UTC, Kagamin wrote:
> GC cleans up for you. Usually this won't happen because uniqueData is likely to be in data section and callback is likely to be a member of a widget used elsewhere. But if they aren't, GC will free them and you end up with dangling pointers in CommandArgs.
I see. I think i have been bitten by this actually. What would be your solution?
|
May 11, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | On 2014-05-11 19:34, Gary Willoughby wrote: > I see. I think i have been bitten by this actually. What would be your > solution? Without having looked at the code, call GC.addRoot. It will make sure the GC knows about the memory even if there's no other reference to it. -- /Jacob Carlborg |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | Hi. Where is the installation and using tutorial for Windows? Thank you :) |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to SomeRiz | On Thursday, 19 June 2014 at 18:10:58 UTC, SomeRiz wrote: > Hi. > > Where is the installation and using tutorial for Windows? > > Thank you :) https://github.com/nomad-software/tkd There is a good readme file and full HTML documentation along with examples there. |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | Thanks Gary. Very simple :) But i have a question. All DLL file => How can i embed main.d file? for example: dmd output => just, main.exe so standalone sorry for my bad english :/ |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to SomeRiz | BTW, there's some info about dragondrop in tk: http://wiki.tcl.tk/571 |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | Hi Kagamin. Visual Studio like editor for TkD :/ So, TkD widgets drag and drop for TkD form |
June 19, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to SomeRiz | On Thursday, 19 June 2014 at 18:47:29 UTC, SomeRiz wrote: > Thanks Gary. > > Very simple :) > > But i have a question. > > All DLL file => How can i embed main.d file? > > for example: > > dmd output => just, main.exe so standalone > > sorry for my bad english :/ You can't, on Windows the DLL's and library folder have to be distributed with your exe. Tkd currently uses these resources: https://github.com/nomad-software/tcltk/tree/v8.6.2/dist/ Later versions of Tkd will use other DLL's i've compiled to avoid any license issues. More information is in the readme file. |
June 20, 2014 Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk | ||||
---|---|---|---|---|
| ||||
Posted in reply to SomeRiz | On Thursday, 19 June 2014 at 19:24:15 UTC, SomeRiz wrote:
> Visual Studio like editor for TkD :/
Hmm... visual designers can usually build pixel-oriented GUI, tk uses layouts, which work with code a little better.
|
Copyright © 1999-2021 by the D Language Foundation