Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8827
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <philip@semanchuk.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'assign': 0.04; 'ubuntu': 0.04; 'python:': 0.05; 'subject:missing': 0.07; 'wxpython': 0.07; 'demonstrates': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'amd64': 0.16; 'dummy': 0.16; 'received:mindspring.com': 0.16; 'ubuntu.': 0.16; 'x-mailer:apple mail (2.1084)': 0.16; 'def': 0.16; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'wrong?': 0.23; 'somewhere': 0.23; 'windows': 0.26; 'work.': 0.28; 'fine.': 0.29; 'problem': 0.29; 'example': 0.30; 'menu,': 0.30; 'list.': 0.33; 'to:addr:python-list': 0.34; 'received:24': 0.34; 'post': 0.34; 'app': 0.35; 'ourselves': 0.35; 'charset:us-ascii': 0.36; 'skip:o 20': 0.36; 'doing': 0.37; 'but': 0.37; 'subject:: ': 0.38; 'menu': 0.38; 'showing': 0.38; 'two': 0.38; 'mailing': 0.38; 'header:Mime- Version:1': 0.39; 'skip:s 20': 0.39; 'under': 0.39; 'to:addr:python.org': 0.39; 'did': 0.40; 'your': 0.60; 'header :Message-Id:1': 0.61; 'luck': 0.71; 'bitmap': 0.84; 'menu.': 0.84; 'received:69.73': 0.84 |
| Content-Type | text/plain; charset=us-ascii |
| Mime-Version | 1.0 (Apple Message framework v1084) |
| Subject | Re: wx MenuItem - icon is missing |
| From | Philip Semanchuk <philip@semanchuk.com> |
| In-Reply-To | <4E12C505.3020300@shopzeus.com> |
| Date | Tue, 5 Jul 2011 08:50:23 -0400 |
| Content-Transfer-Encoding | quoted-printable |
| References | <4E12C505.3020300@shopzeus.com> |
| To | Lista-Comp-Lang-Python list <python-list@python.org> |
| X-Mailer | Apple Mail (2.1084) |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - deimos.nocdirect.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - semanchuk.com |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.628.1309875146.1164.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1309875146 news.xs4all.nl 21819 [2001:888:2000:d::a6]:40626 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8827 |
Show key headers only | View raw
On Jul 5, 2011, at 4:02 AM, Laszlo Nagy wrote: > def onPopupMenu(self,evt): > menu = wx.Menu() > for title,bitmap in self.getPopupMenuItems(): > item = wx.MenuItem(None,-1,title) > if bitmap: > item.SetBitmap(bitmap) > menu.AppendItem(item) > menu.Bind(wx.EVT_MENU,self.onPopupMenuItemSelected,item) > self.PopupMenu( menu, evt.GetPoint()) > menu.Destroy() > > I have read somewhere that under GTK, I have to assign the bitmap before Append-ing the MenuItem to the Menu. So did I, but it doesn't work. Menu item icons are not showing up in Ubuntu. On Windows 7, everything is fine. What am I doing wrong? > > System: Ubuntu 11 amd64 > Python: 2.7.1+ > wx.__version__ '2.8.11.0' Hi Laszlo, Two suggestions -- 1. Post a complete example that demonstrates the problem so that we don't have to dummy up a wx app ourselves to try your code. 2. Ask on the wxPython mailing list. Good luck Philip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: wx MenuItem - icon is missing Philip Semanchuk <philip@semanchuk.com> - 2011-07-05 08:50 -0400
csiph-web