473,786 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7406

"Bart Nessux" <ba*********@ho tmail.com> schrieb im Newsbeitrag
news:cf******** **@solaris.cc.v t.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_symbo l = u"\u00A9"
# or use: copyright_symbo l = u"\N{COPYRIG HT SIGN}"
registered_symb ol = u"\u00AE"
# or use: registered_symb ol = u"\N{REGISTE RED SIGN}"
msg = u"Copyright: %s, Registered: %s" % (copyright_symb ol,
registered_symb ol)
tkMessageBox.sh owinfo("Info", msg)
#root.mainloop( )

Regards,
--

Vincent Wehren

Thanks,
Bart

Jul 18 '05 #2
vincent wehren wrote:
"Bart Nessux" <ba*********@ho tmail.com> schrieb im Newsbeitrag
news:cf******** **@solaris.cc.v t.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_symbo l = u"\u00A9"
# or use: copyright_symbo l = u"\N{COPYRIG HT SIGN}"
registered_symb ol = u"\u00AE"
# or use: registered_symb ol = u"\N{REGISTE RED SIGN}"
msg = u"Copyright: %s, Registered: %s" % (copyright_symb ol,
registered_symb ol)
tkMessageBox.sh owinfo("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
4376
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 don't like the brackets.
24
2070
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 see the following decisions that must be made: 1) Indicator Proposals differ on how some sort of indicator of "decoratorhood" is use. These include: * none (e.g. just the list, as in the "list-after-def" suggestion) * the '@' character
1
585
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 'C:\Documents and Settings\bamason\My Documents\Visual Studio Projects\MHSFire\bin\MHSFire.exe', Symbols loaded. 'MHSFire.exe': Loaded 'c:\winnt\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols...
3
2375
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 you can find both {} then you have to count them. example: bla bla bla {bla { asd asd} Result:
4
5266
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 having trouble preserving data as it gets entered into the database. Primarily, quotes and special characters. Spcifically, I noticed it stripped out some double quotes and a "Registered" symbol &reg; (not the ascii but the actual character"
3
2074
by: Gibs | last post by:
Hi Is there any way to show the special symbols in a TextBox. Thanks in Advance Gibs
15
22863
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 could either be f1() or f2(). BRs!
2
5649
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 method like $data=$_post; after this i am inserting in database, mysql_query("insert into tbl_name(column name) values('$data')"); Everthing working fine when we insert simple text in the form,but failing when special character are entered. eg:...
4
2160
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
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9960
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.