Giter VIP home page Giter VIP logo

Comments (8)

 avatar commented on May 30, 2024

I meant to put back-ticks instead of quotes in the example above
ComboBox.setData([c:\a\b]) //Garbage
ComboBox.setData([c:\\a\\b]) //works
Sorry bout that

from tkd.

nomad-software avatar nomad-software commented on May 30, 2024

This is an issue with string escaping throughout Tkd. I'm looking into it now.

from tkd.

 avatar commented on May 30, 2024

Ha, web site has same bug :)

from tkd.

 avatar commented on May 30, 2024

no prob. no hurry. thanks

from tkd.

nomad-software avatar nomad-software commented on May 30, 2024

Ok this is now fixed in master. 63ac967

I'll do another beta release soon.

This is a compound problem i think. In your example creating a string literal like this: "c:\a\b" is not going to work. This is because \a and \b are special control characters. So the solution here is to use raw strings by prepending an r before the string like this: r"c:\a\b" which disables all special control characters or to escape the backslash like this: "c:\\a\\b". This was also a problem on my end in that Tcl/Tk was parsing these special characters as well. I've added some code to escape backslashes and other special Tcl characters to avoid problems in the future but you'll still need to take into account the above information on control characters.

from tkd.

 avatar commented on May 30, 2024

Thanks Gary for the quick responses.
Github trashes the backslashes in the strings too, much to my amusement, so
I could not give you a good example. I am very familiar with string escape
codes. I was sending it correctly but it showed up wrong in the comments.
LOL

Dave

On Sat, May 17, 2014 at 1:35 PM, Gary Willoughby
[email protected]:

Ok this is now fixed in master. 63ac96763ac967

I'll do another beta release soon.

This is a compound problem i think. In your example creating a string
literal like this: "c:\a\b" is not going to work. This is because \a and
\b are special control characters. So the solution here is to use raw
strings by prepending an r before the string like this: r"c:\a\b" which
disables all special control characters or to double escape the backslash
like this: "c:\a\b". This was also a problem on my end in that Tcl/Tk
was parsing these special characters as well. I've added some code to
escape backslashes and other special Tcl characters to avoid problems in
the future.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-43416175
.

from tkd.

nomad-software avatar nomad-software commented on May 30, 2024

I got your meaning though and tested it for myself and saw it was handling things wrong, thanks for the heads up.

from tkd.

 avatar commented on May 30, 2024

NP.
I work for a company that makes systems that a major US financial company
uses. I frequently make tools/utilities for the systems. They are all
Windows controllers. Because it is a financial outfit, they pretty much
frown on installing large libraries like java, GTK, etc. on anything
attached to their networks. When I make a tool, a small exe without a big
library works best. D with SQLite and your TKD lib is a nice fit for
making something quick and small.

I have made a couple of things using IUP, just using the C bindings. It
took me a long time to make GUIs. I was going to make a D wrapper for IUP
similar to yours when you came out with this.

I just finished my first tool with TKD although it is pretty simple, It
allows user/technician to switch servers on a failure. Only took me a
couple days to make though. Attached is a screenshot:

Appreciate the work you are doing with this project!

Dave Gregory

On Sat, May 17, 2014 at 2:20 PM, Gary Willoughby
[email protected]:

I got your meaning though and tested it for myself and saw it was handling
things wrong, thanks for the heads up.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-43417511
.

from tkd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.