in reply to Re: Tk Drag and Drop Between Applications
in thread Tk Drag and Drop Between Applications

Fantastic Courage! Thanks.

I've got a DnD proof of concept working in pure Tcl/Tk (just a tweak of the TkDnD 'dnddemo.tcl' file). I don't know Tcl, so that one tweak was a pain, but at this point I'm going to be learning *something* new.

Do you know if I can work with my mySQL database from Tcl/Tk also? If so, I could create the entire tool in Tcl/Tk and create a single executable... what is it, Starkit?

I'll post my progress here for anyone following my footsteps.

  • Comment on Re^2: Tk Drag and Drop Between Applications

Replies are listed 'Best First'.
Re^3: Tk Drag and Drop Between Applications
by Courage (Parson) on Dec 16, 2004 at 06:36 UTC
    Although Tcl/Tk allows mySQL database, there is no need to switch to Tcl for database access, because you can use it from Perl.

    For example, you can do GUI part (with DnD) in Tcl and remaining part using Perl.

    It's for you to decide.
    Let me know if you will have some difficulties, I'll help solving them.

    Best regards,
    Courage

      Thanks, it looks like I'll need some help. I have Activestate Perl and Activestate Tcl/Tk.

      Activestate doesn't have Windows PPMs for Tcl::Tk or Tcl. So I tried my hand at making Tcl 0.84.

      It "looks good", but says, "Note: (probably harmless)" the following libraries are not found (I've taken a random sample and conifirmed that they aren't on my system).

      oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
      It ends with "Writing Makefile for Tcl". Running make returns this error:

      make: *** No rule to make target `C:\Perl\lib^', needed by `Makefile'.  Stop.

      I've poked around online for this issue, but Tcl::Tk doesn't have much coverage.

        Do you have compiler? Which one?

        Usually extensions with XS are built with MSVC and nmake (not make)

        However I can share my own Tcl.dll that is used fom ActiveState's Perl 5.8.4 and ActiveState's Tcl at http://www.vkonovalov.ru/unicode/Tcl.dll
        this file should be copied into (you-perl-path)/site/lib/auto/Tcl
        Tcl.pm should be in (you-perl-path)/site/lib
        Tcl::Tk is pure-perl so it will be easier to install, but just copying Tk.pm into (you-perl-path)/site/lib/Tcl/

        Still, I can help you building your own binaries.

        About low coverage of Tcl::Tk - keep in mind this is only a light bridge module between Perl and Tcl/Tk (both has huge couverages...)
        However Tcl::Tk has its own support list, so your problems written to it will be answered quickly.
        Write to http://sourceforge.net/mailarchive/forum.php?forum_id=40170 or subscribe there...

        Best regards,
        Courage, the Cowardly Dog