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

open new window frame?

i'm new to python... im making a GUI for an image information editing program that i am doing for school. i have a button in my menu bar that i want to open a new window (same GUI) just like in internet explorer when you click new window. hope that makes sense... i'd imagine it's simple to do, but im stuck. any help? much apprecited! i have the button... basically need a definition... new window frame.
Aug 7 '07 #1
1 5531
i'm new to python... im making a GUI for an image information editing program that i am doing for school. i have a button in my menu bar that i want to open a new window (same GUI) just like in internet explorer when you click new window. hope that makes sense... i'd imagine it's simple to do, but im stuck. any help? much apprecited! i have the button... basically need a definition... new window frame.
never mind guys, figured it out myself!

Expand|Select|Wrap|Line Numbers
  1. #Menubar
  2. new = wx.MenuItem(file, 101, '&New\tCtrl+N', 'Creates a new document')
  3.          new.SetBitmap(wx.Bitmap('icons/stock_new-16.png'))
  4.          file.AppendItem(new) 
  5.  
  6.  
  7. #Button Bind
  8. self.Bind(wx.EVT_MENU, self.NewApplication, id=101)
  9.  
  10.  
  11. #Menubar button- new window method
  12. def NewApplication(self, event):
  13.          editor = Editor(None, -1, 'Editor')
  14.          editor.Centre()
  15.          editor.Show()
Aug 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Matt | last post by:
Is it possible to post form data and open an invisible window? For example, in page1.as <form action="page2.asp" method="POST" It will post the form data from page1.asp to the server, and...
5
by: Clive Moore | last post by:
In my web application I provide the user with a popup window to a rich text document by calling window.open(). My problem is that the title of the open window is something like...
2
by: Matt | last post by:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open a new window called page2.asp. When the user...
1
by: rlo | last post by:
I have a test in a frame called FrameTest.htm. For the results there is a Javescriptfunction. When a button is clicked the function must work in the same frame. Now I use: var correctWin =...
5
by: Kojak | last post by:
I have a own search engine in a intranet. It can be opened by the search button or with the target="_search". On the page is a Textbox and a button. The page works well, but just opens in the...
1
by: RJN | last post by:
Hi Sorry for posting again. I open a few pop-up windows from a main window. If session time out occurs in either the main window or the pop-up windows ,I redirect the user to login screen....
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.