Comments (8)
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.
This is an issue with string escaping throughout Tkd. I'm looking into it now.
from tkd.
Ha, web site has same bug :)
from tkd.
no prob. no hurry. thanks
from tkd.
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.
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.
I got your meaning though and tested it for myself and saw it was handling things wrong, thanks for the heads up.
from tkd.
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)
- Build of example fails on Mac OSX 10.11 HOT 1
- Text bind (<<Modified>>) only happens once HOT 3
- Example fails to run on Windows but build fine HOT 1
- Add note for linker flags in windows needed to prevent console window. HOT 2
- commandCallbackHandler catches Throwable making unrecoverable Errors impossible HOT 5
- lib found but undefined references HOT 5
- start TK in D Programming ! HOT 4
- Feature Request: add OpenGL capabilites HOT 4
- Changing Widget Background Color HOT 3
- MDI Support HOT 3
- Color methods have been added to widgets that can't use them
- does canvas use the gpu to draw? HOT 1
- Error: module `tkdapplication` is in file 'tkd\tkdapplication.d' which cannot be read HOT 4
- Windows requires Microsoft Visual C++ Redistributable HOT 2
- How to install this in Windows ? HOT 3
- Segmentaiton Fault after Choosing a File via OpenFileDialog HOT 2
- Rebinding default tk keys does not work HOT 9
- How can I get currently selected tab in NoteBook widget? HOT 1
- Has this been abandoned? HOT 3
- Simple Q: is the final app using this lib completely native? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkd.