Hi everyone. I create a little browser with wxpython and IEHtmlWindow.
But I have a little problem here.
When I press enter in the html page, The focus goes to another panel.
Why this happens?
I want to load a html page and it have textares and user should able
to press enter inside html page.
This is the code for creating it:
#===================Code Begin ==========================
class PageOne(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(
self, parent, -1,
style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN|
wx.NO_FULL_REPAINT_ON_RESIZE
)
self.sizer = wx.BoxSizer(wx.HORIZONTAL)
import wx.lib.iewin as iewin
a = iewin.IEHtmlWindow(self, -1 )
#a.LoadUrl('file:///E:/Ducuments/EL%20Software%20Project/
mainSoft/xmlParser/HTML/learn/less2.html')
self.sizer.Add(a, 3, wx.EXPAND,1)
self.SetSizer(self.sizer)
#self.Bind(wx.EVT_TEXT_ENTER , self.OnKeyPress, a)
config.CurrentNotebook = a
#===================Code End==========================
Thanks in advance. 1 1817
On Apr 24, 11:48*pm, Farsheed Ashouri <rodmena....@gmail.comwrote:
Hi everyone. I create a little browser with wxpython and IEHtmlWindow.
But I have a little problem here.
When I press enter in the html page, The focus goes to another panel.
Why this happens?
I want to load a html page and it have textares *and user should able
to press enter inside html page.
This is the code for creating it:
#===================Code Begin ==========================
class PageOne(wx.Panel):
* * def __init__(self, parent):
* * * * wx.Panel.__init__(
* * * * * * self, parent, -1,
* * * * * * style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN|
wx.NO_FULL_REPAINT_ON_RESIZE
* * * * )
* * * * self.sizer = wx.BoxSizer(wx.HORIZONTAL)
* * * * import *wx.lib.iewin * *as *iewin
* * * * a *= iewin.IEHtmlWindow(self, -1 )
* * * * #a.LoadUrl('file:///E:/Ducuments/EL%20Software%20Project/
mainSoft/xmlParser/HTML/learn/less2.html')
* * * * self.sizer.Add(a, 3, wx.EXPAND,1)
* * * * self.SetSizer(self.sizer)
* * * * #self.Bind(wx.EVT_TEXT_ENTER , self.OnKeyPress, a)
* * * * config.CurrentNotebook = a
#===================Code End==========================
Thanks in advance.
I recommend re-posting to the wxPython user's group: http://wxpython.org/maillist.php
It may be that you need to set the focus on the html widget and within
the widget, set the focus in one of your text areas. But I don't
really know for sure.
Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: omission9 |
last post by:
An application I have written is, suddenly it seems, throwing the
following error after being left in use for several hours. This does
not seem to occur with lighter usage. I am not 100% sure what...
|
by: plumpy321 |
last post by:
Hi,
I took an example from wxPython with the IE web browser and
created a refresh button to automatically refresh a web page in 5
second intervals. But I notice that the memory utilization in...
|
by: timothy.williams |
last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2
machine.
I have python in a non-standard place, but I'm using --prefix with the
configure script to point to where I have...
|
by: Stefanie Wagner |
last post by:
Hello, I am fighting with EVT_KILL_FOCUS for quite a time now and I
don't succeed at all.
Situation:
If a user leaves a textfield the entered information should be checked
and an additional...
|
by: vivainio |
last post by:
I rarely do GUIs, and reminded myself today why that is the case
(simply, it's not fun).
I implemented a simple TreeCtrl, and had to implement my own 'children'
method, of all things!
Here it...
|
by: gjzusenet |
last post by:
Hi
I've been using an IEHtmlWindow in my script with no problems, but it
seems that for people with a clean installation of XP SP2 it fails like
such:
Traceback (most recent call last):
File...
|
by: Subsciber123 |
last post by:
I have a window that I have created using Python Card that contains an wx.iehtmlWindow opject inside of it. Does anyone know how to disable right click and/or cause links that would open in new...
|
by: citronelu |
last post by:
I made a small wxPython app that retrieves web data; for visual
logging I use a TextCtrl widget, and stdout is redirected to it,
something like this:
class RedirectOutput:
def __init__(self,...
|
by: Robin Dunn |
last post by:
Announcing
----------
The 2.8.8.1 release of wxPython is now available for download at
http://wxpython.org/download.php. This is a minor bugfix release with
several fixes for problems...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: 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: 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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| | |