473,772 Members | 3,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_wi ndow(frame.wind ow_id()) <--- not sure!!
mainloop()
Thanks

-Matt
Mar 28 '06 #1
2 3550
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
1849
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 with the header "class classtitle(Frame):" in a script called classtitle.py. Having imported classtitle, I create a Frame widget within my gui using the command "w = Frame(self)." Then, I grid this widget and issue the command "classinstance =...
4
3415
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) QuickTime movie files, each of them matched to a one-frame QuickTime movie poster of the same screen size and also to a much smaller JPEG thumb of the same image as the movie poster. I want to put the small thumbs into individual Table cells to serve...
2
2254
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 .reset() methods of the form. The submit call does what is expected. But the reset call throws an error in Mozilla (1.2.1) 'widget.reset is not a function'. It doesn't work in Konqueror (3.1.1) either (don't have an error message - it just don't...
9
3036
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
2581
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 parent? Because my first tought was that this is toplevel master than i found that its not""" Frame.__init__(self, master) # and this too than self.config(width=200, height=200)
2
2746
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 up dialogs.. how do i make this packed into the frame the way button and other widgets can be packed? i am a newbie to tkinter.. any help greatly appreciated TIA dn
4
1781
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 is created with wxpython ) : import d3dx # directpython module frame=d3dx.Frame(u"My frame") # create frame frame.Mainloop() # run it
0
1262
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 (like windows media player). The problem is that i use a dictionary like this to let the scale know where it needs to be at any point in the song: def create_mapdic(): mapdic={} for i in range(0, length_of_song): ...
2
8089
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 did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
9620
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
10261
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
10104
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...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
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
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
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.