473,382 Members | 1,290 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,382 software developers and data experts.

embed notepad into a frame widget

all,

trying to load an application (notepad for instance) and have it sit
inside a Python application window. When the main window maximises or
minimises, the (notepad) app follows.

I am pretty sure I need to use a frame widget under tkinter (win32) but
not exactly sure how to do it.

I can make the frame but not embed notepad.

do I use something like this?
from Tkinter import *
master = Tk()
frame = Frame(width=768, height=576, bg="", colormap="new")
frame.pack()
video.attach_window(frame.window_id()) <--- not sure!!
mainloop()
Thanks

-Matt
Mar 28 '06 #1
2 3514
Matt wrote:
all,

trying to load an application (notepad for instance) and have it sit
inside a Python application window. When the main window maximises or
minimises, the (notepad) app follows.

I am pretty sure I need to use a frame widget under tkinter (win32) but
not exactly sure how to do it.


You are pretty wrong being sure :) Under windows, it is indeed possible to
embed certain applications into others - the related technical term is
conveniently called OLE (Object lining and embedding).

But the application has to be prepared for doing so - and this is deep
windows stuff, so I guess you can't do that with Tkinter.

Another technique is to use so-called activex-controls. The IEfor instance
is available as such a control. But that also isn't doable with Tkinter
(AFAIK, I'm not totally sure on that). But wxPython can:

http://www.wxpython.org/MigrationGuide.html

Diez
Mar 28 '06 #2
Diez B. Roggisch wrote:
You are pretty wrong being sure :) Under windows, it is indeed possible to
embed certain applications into others - the related technical term is
conveniently called OLE (Object lining and embedding).


Thanks,

at least I didnt spend two much time on it :)

-Matt
Mar 31 '06 #3

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

Similar topics

1
by: Shankar Iyer (siyer | last post by:
Hi, I am still new to Python and Tkinter, so I apologize in advance if I do not word my question optimally. I am trying to use a frame widget as the parent for other widgets. There is a class...
4
by: AES/newspost | last post by:
Can anyone provide a quick tip on the html structure to link from a thumb to a movie poster and from there on to a QuickTime movie, all in one go, using EMBED? I have a number of (large)...
2
by: Colin McKinnon | last post by:
Hi all, I've got two frames, one with a form ('main') and one with some clickable images ('tp'). The clickable images call a function in 'main' (code below) which in turn calls the .submit() or...
9
by: Sandy | last post by:
can mfc application, send text data to opened notepad file in desktop?(live transfer of data) . can anybody help
1
by: Gigs_ | last post by:
what is the best way to write tkinter menus? As toplevels or as frame with Menubutton? im doing like this class MyWidget(Frame): def __init__(self, master=None): """ should this master be...
2
by: devnew | last post by:
i am trying out tkinter to make a gui..i want to have a frame with an embedded file explorer next to a 'open directory' label..i tried out FileDialog and tkFileDialog methods but they open as pop...
4
by: vedrandekovic | last post by:
Hello, Does anybody have any idea how can I embed my modules to libary.zip and use it from my application.For example if user write this code in my TextEntry ( or something like that, textentry...
0
by: noobuser | last post by:
Not sure if this question belongs here, so sorry if it doesn't. amature programmer here, trying making a media scale widget (like the one in windows media player) for a media player type program...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.