473,395 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Print Special Symbols in Tk GUI

Using tkinter to create a Python version of Microsoft's winver. Works
great... how can I print the copyright symbol (c) and the registered (R)
symbol into the GUI?

Thanks,
Bart
Jul 18 '05 #1
2 7356

"Bart Nessux" <ba*********@hotmail.com> schrieb im Newsbeitrag
news:cf**********@solaris.cc.vt.edu...
Using tkinter to create a Python version of Microsoft's winver. Works
great... how can I print the copyright symbol (c) and the registered (R)
symbol into the GUI?
Consider using unicode(\u) or unicode name (\n{name goes here} escapes:

import tkMessageBox
import Tkinter
root = Tkinter.Tk()
root.withdraw()
copyright_symbol = u"\u00A9"
# or use: copyright_symbol = u"\N{COPYRIGHT SIGN}"
registered_symbol = u"\u00AE"
# or use: registered_symbol = u"\N{REGISTERED SIGN}"
msg = u"Copyright: %s, Registered: %s" % (copyright_symbol,
registered_symbol)
tkMessageBox.showinfo("Info", msg)
#root.mainloop()

Regards,
--

Vincent Wehren

Thanks,
Bart

Jul 18 '05 #2
vincent wehren wrote:
"Bart Nessux" <ba*********@hotmail.com> schrieb im Newsbeitrag
news:cf**********@solaris.cc.vt.edu...
Using tkinter to create a Python version of Microsoft's winver. Works
great... how can I print the copyright symbol (c) and the registered (R)
symbol into the GUI?

Consider using unicode(\u) or unicode name (\n{name goes here} escapes:

import tkMessageBox
import Tkinter
root = Tkinter.Tk()
root.withdraw()
copyright_symbol = u"\u00A9"
# or use: copyright_symbol = u"\N{COPYRIGHT SIGN}"
registered_symbol = u"\u00AE"
# or use: registered_symbol = u"\N{REGISTERED SIGN}"
msg = u"Copyright: %s, Registered: %s" % (copyright_symbol,
registered_symbol)
tkMessageBox.showinfo("Info", msg)
#root.mainloop()

Regards,
--

Vincent Wehren


Thanks Vincent... that works great.
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

68
by: Marco Bubke | last post by:
Hi I have read some mail on the dev mailing list about PEP 318 and find the new Syntax really ugly. def foo(x, y): pass I call this foo(1, 2), this isn't really intuitive to me! Also I...
24
by: Steven Bethard | last post by:
I think one of the biggest reasons we're having such problems coming to any agreement on decorator syntax is that each proposal makes a number of syntax decisions, not just one. For decorators, I...
1
by: aerobar2 | last post by:
When I debug my application I get "no symbols loaded" ================= 'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'MHSFire': Loaded...
3
by: ATH0 | last post by:
How to search for special character { } and how to count them.. I got field called text ( undefined length ) and in this field you must define "{" as start and "}" as end of some text line. If...
4
by: Ewok | last post by:
let me just say. it's not by choice but im dealing with a .net web app (top down approach with VB and a MySQL database) sigh..... Anyhow, I've just about got all the kinks worked out but I am...
3
by: Gibs | last post by:
Hi Is there any way to show the special symbols in a TextBox. Thanks in Advance Gibs
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
2
by: Ravigandha | last post by:
Hello everybody, My question is how to insert special characters and symbols in Mysql5 database and how to retrieve them from database in php. Here i am inserting some data from a form,by post...
4
by: sinbad | last post by:
how can i write a program, which should accept input as NAME of a variable in the program and print it's value.Is this possible. for example. int main () { int x,y,z; x = 10; y = 20; z = 30;
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.