This may be really obscure, but I had a dream about programming
something like this, so don't blame me. Is it possible to take a small
image or icon and display it as a character in a Tk text box? Think
how Thunderbird displays text smilies as actual smiley icons. Or how
in AIM as you type a smiley, it replaces it with the picture. Does
anyone know how to display these specifically in a Tk text box? Thanks. 4 2194
Jay wrote:
This may be really obscure, but I had a dream about programming
something like this, so don't blame me. Is it possible to take a small
image or icon and display it as a character in a Tk text box? Think
how Thunderbird displays text smilies as actual smiley icons. Or how
in AIM as you type a smiley, it replaces it with the picture. Does
anyone know how to display these specifically in a Tk text box? Thanks.
Dreaming in Python, eh? Maybe you should take a break. ;-)
Sure, quoting the link below: "You can put an image or bitmap into a
text widget. It is treated as a single character whose size is the
natural size of the object."
You can also embed any Tk widget in a Tk Text widget, including
ImageTks and widgets with bitmaps.
See: http://infohost.nmt.edu/tcc/help/pub...ext-image.html
and http://infohost.nmt.edu/tcc/help/pub...xt-window.html
HTH,
~Simon
PERFECT!!! Thanks so much!
Simon Forman wrote:
Jay wrote:
This may be really obscure, but I had a dream about programming
something like this, so don't blame me. Is it possible to take a small
image or icon and display it as a character in a Tk text box? Think
how Thunderbird displays text smilies as actual smiley icons. Or how
in AIM as you type a smiley, it replaces it with the picture. Does
anyone know how to display these specifically in a Tk text box? Thanks.
Dreaming in Python, eh? Maybe you should take a break. ;-)
Sure, quoting the link below: "You can put an image or bitmap into a
text widget. It is treated as a single character whose size is the
natural size of the object."
You can also embed any Tk widget in a Tk Text widget, including
ImageTks and widgets with bitmaps.
See: http://infohost.nmt.edu/tcc/help/pub...ext-image.html
and http://infohost.nmt.edu/tcc/help/pub...xt-window.html
HTH,
~Simon
Can you do the same in wxPython?
Simon Forman wrote:
Jay wrote:
This may be really obscure, but I had a dream about programming
something like this, so don't blame me. Is it possible to take a small
image or icon and display it as a character in a Tk text box? Think
how Thunderbird displays text smilies as actual smiley icons. Or how
in AIM as you type a smiley, it replaces it with the picture. Does
anyone know how to display these specifically in a Tk text box? Thanks.
Dreaming in Python, eh? Maybe you should take a break. ;-)
Sure, quoting the link below: "You can put an image or bitmap into a
text widget. It is treated as a single character whose size is the
natural size of the object."
You can also embed any Tk widget in a Tk Text widget, including
ImageTks and widgets with bitmaps.
See: http://infohost.nmt.edu/tcc/help/pub...ext-image.html
and http://infohost.nmt.edu/tcc/help/pub...xt-window.html
HTH,
~Simon
Jay wrote:
Can you do the same in wxPython?
I am a greenhorn in wxPython, so please don't bet on what I state here,
but to my current knowledge wxPython doesn't come with a widget capable
of what Tkinter text box is capable of. But wxPython comes e.g. with a
widget displaying any HTML content, so if you need only to display and
not edit things it is a perfect one to use if you need to mix text with
images and control elements.
Claudio Grondi
>
Simon Forman wrote:
>>Jay wrote:
>>>This may be really obscure, but I had a dream about programming something like this, so don't blame me. Is it possible to take a small image or icon and display it as a character in a Tk text box? Think how Thunderbird displays text smilies as actual smiley icons. Or how in AIM as you type a smiley, it replaces it with the picture. Does anyone know how to display these specifically in a Tk text box? Thanks.
Dreaming in Python, eh? Maybe you should take a break. ;-)
Sure, quoting the link below: "You can put an image or bitmap into a text widget. It is treated as a single character whose size is the natural size of the object."
You can also embed any Tk widget in a Tk Text widget, including ImageTks and widgets with bitmaps.
See: http://infohost.nmt.edu/tcc/help/pub...ext-image.html and http://infohost.nmt.edu/tcc/help/pub...xt-window.html
HTH, ~Simon
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Charles Robinson III |
last post by:
How do I make Access display pictures within a form view as linked objects,
so that the pictures which I am linking to are displayed within the
database? I have a seperate folder for pictures to be placed in, and I have
two pictures per record.
|
by: Siv |
last post by:
Hi,
I have written an application which is used by sales staff when discussing
products with their customers over the phone. It is a database application
that holds detailed information about their products including pictures to
assist the sales staff describe features to the customer. The next step in
development of the app is to have a button when in a particular product
screen that the seller can press which sends the customer an...
|
by: bugbear |
last post by:
Hello;
I have (tried) to change my geocities
site to be "styled" not "tabled".
It's certainly made the HTML nicer.
But it doesn't work as nicely
I'd like.
And it almost doesn't work at all under IE.
|
by: George Race |
last post by:
I am trying to display pictures in either ReportViewer or Crystal Reports, using VB 2005.
I have the path to pictures in a Form text box that is linked to the database containing the full path to the pictures.
How can I use the path to display the pictures on reports?
Any help greatly appreciated,
George
|
by: Zeljko Bilandzija |
last post by:
Hy, could someone help me in this:
In design mode, i want to put pictures in database. I made column named
pics, and its type as image. How can I put pictures or some address of these
pictures in that column, or i maybe need to put pictures in Add_Data folder
and make reference from there, or what I need to do?
could someone explain me that process of putting at least one picture in
database, I'm using Microsoft SQL Server 2005
| |
by: rudeman76 |
last post by:
Hello,
I am working on an incident form. I have 4 set text boxes and up to 4 drop-down boxes on the form. The user enters in the date then time. I have 4 option buttons for the user to select the number of security involved. When the user selects the number of security, the corrisponding drop-down boxes appear (eg. if they select 3 security, 3 drop-down boxes appear). The drop-down boxes have a list of names (populated by a query). The...
|
by: recordlovelife |
last post by:
Hey, im not sure if this is javascript, but i thought it would be (if anyone knows a better Cross Browser compatible way, let me know...)
Image if you will a blog entry, and at the end of the actual paragraph, you have pictures. Now the paragraph and <img> tags are all saved in the same field in the database, so when you loop through the query and print out the the content, the pictures load too. The pictures are always at the end of the...
|
by: TOPSie |
last post by:
I used http://support.microsoft.com/kb/316383/en-us as the basis of
some code to generate a Word document using VB code (.NET2005).
In the code I have a loop which produces a table and in the merged
left hand column I place a picture (looping round a directory full
of ,jpg files - a table entry in the Word document for every picture).
All works fine and the document looks fine on the screen and in Print
Preview, but when I print only...
|
by: oranoos3000 |
last post by:
hi
would you please help me
i have a online shopping center that i show pictures of the my product in home page.
in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture .
place of the pictures is saved in the database(my database is with mysql)
and in home page i fetch properties of the product and address of place that pictures is located
output of the code in the...
|
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,...
|
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...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |