Hi,
I've a wxPython Application on Windows that glues a
database, Excel, and a GUI for configuration issues using
COM. Works pretty good. In the next step I want to integrate
the GUI-dialog more into Excel, so it should look like a
modal toplevel dialoge of Excel.
I've a class for the main dialog derived from wxFrame, and
doing on startup:
wxFrame.__init__(self, NULL, -1, cnfDesText, size=(800,600))
My Idea is now to give as parent the Window handle of Excel
to the constructor of wxFrame.
Not sure how the window handle can be retrieved (VBA,
win32-Extension, wxWindows, ...)
Any idea ??
Thanks a lot for all ideas, comments, hints in advance
Alexander 3 2684
Alexander Eisenhuth schrieb: Hi,
I've a wxPython Application on Windows that glues a database, Excel, and a GUI for configuration issues using COM. Works pretty good. In the next step I want to integrate the GUI-dialog more into Excel, so it should look like a modal toplevel dialoge of Excel.
I've a class for the main dialog derived from wxFrame, and doing on startup: wxFrame.__init__(self, NULL, -1, cnfDesText, size=(800,600))
My Idea is now to give as parent the Window handle of Excel to the constructor of wxFrame.
Not sure how the window handle can be retrieved (VBA, win32-Extension, wxWindows, ...)
From gmane.comp.python.wxpython - list I got a hint:
If you can get the handle then you can probably use wx.Window_FromHWND to turn it into a wx.Window.
So I tried to get the process-id. A look into th e win32
extensions showed me a chapter of how to do it with a COM
server. I took the code: object='process' junk, instances =
win32pdh.EnumObjectItems(None,None,object,win32pdh .PERF_DETAIL_WIZARD)
Traceback (most recent call last):
File "<input>", line 1, in ?
error: (-1073738824, 'EnumObjectItems for buffer size', 'No
error message is available')
Have I overlook something ?? (I'm using XP Home)
Thanks a lot for comments
Alexander
In article <2k************@uni-berlin.de>,
Alexander Eisenhuth <ne******@stacom-software.de> wrote:
Cameron Laird schrieb: In article <2k************@uni-berlin.de>, Alexander Eisenhuth <ne******@stacom-software.de> wrote: . . .
So I tried to get the process-id. A look into th e win32
. . . ? This looks to me like working too hard. Does import os print "The process-id is %s." % os.getpid() not meet your requirements?
Sorry, if I was to unprecisely, I need the id of a foreign
process. (I'm a COM server process and need the id of the
calling client) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Patrick Lim |
last post by:
Here is the problem:
I have written a non-modal frame class in Java for displaying help
text when a user is using an application. It works as desired in that
if the user selects "help" again,...
|
by: martin de vroom |
last post by:
Hi,
I have a web page that opens a modal dialog (client side) in the
following manner
onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px;
dialogWidth: 400px; dialogTop:...
|
by: Nonoy of Philippines |
last post by:
Hello, guys... I'm just starting to develop web applications and I have this
problem regarding Session objects
At some parts of my application, I open modal dialog window which also opens...
|
by: Matt |
last post by:
I want to know how to submit the form data to a modal dialog window? The
following is page1.asp, and when the user clicks submit button, it will post
the form data to page2.asp by opening a new...
|
by: Earl Teigrob |
last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its own
post backs with validation checking and then...
|
by: Brian Henry |
last post by:
Hi, is there a way to get a form to post back to a modal dialog box when it
was posted from a modal dialog to start with? here is the problem... I have
a form with combo boxes and when you select...
|
by: Ricky K. Rasmussen |
last post by:
Hi NG,
We have a rather large ASP.NET application that uses popups to display
various dialogs to the user. In our work we've come over a rather annoying
"bug":
If we open a modal dialog using...
|
by: sthrudel |
last post by:
Hi!
I'm working on a web application in Asp.net and what I would like to
have is a cross borwser modal dialog which accepts user's input.
I would like to catch what the user clicked on the...
|
by: VK |
last post by:
In the continuation of the discussion at "Making Site Opaque -- This
Strategy Feasible?" and my comment at
http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2
I have...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
| |