ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Ошибки в python-module-wx
@ 2008-03-01 11:59 Eugine Kosenko
  2008-03-01 21:09 ` Eugine Kosenko
  2008-03-03 10:38 ` Grigory Batalov
  0 siblings, 2 replies; 15+ messages in thread
From: Eugine Kosenko @ 2008-03-01 11:59 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Похоже, после переезда на Python 2.5 возникла проблема при создании
виджетов. Например,

import wx

if __name__ == '__main__':
        app = wx.PySimpleApp()
        frame = wx.Frame(None, -1, 'test frame')
        panel = wx.Panel(frame, -1)
        frame.SetSizer(wx.BoxSizer(wx.VERTICAL))
        frame.GetSizer().Add(panel, 1, wx.EXPAND)
        frame.Show()
        app.MainLoop()

Возникает ошибка:

Traceback (most recent call last):
  File "testPanelInBoxSizer.py", line 8, in <module>
    frame.GetSizer().Add(panel, 1, wx.EXPAND)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 12452, in Add
    return _core_.Sizer_Add(*args, **kwargs)
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item

Может, дело и не в Питоне. Я пока пробую собрать оригинальный
wxPython, чтобы проверить. У кого-нибудь это еще воспроизводится?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-03-07  6:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-01 11:59 [sisyphus] Ошибки в python-module-wx Eugine Kosenko
2008-03-01 21:09 ` Eugine Kosenko
2008-03-02  8:15   ` Eugine Kosenko
2008-03-02 10:14     ` Pavlov Konstantin
2008-03-02 13:06       ` Alex Gorbachenko
2008-03-02 20:00         ` Vitaly Lipatov
2008-03-03 11:30       ` Eugine Kosenko
2008-03-03 12:32         ` Grigory Batalov
2008-03-03 16:23           ` Eugine Kosenko
2008-03-04 10:45             ` Grigory Batalov
2008-03-06  7:21               ` Eugine Kosenko
2008-03-06  9:24                 ` Grigory Batalov
2008-03-07  6:50                   ` Eugine Kosenko
2008-03-03 11:31       ` Eugine Kosenko
2008-03-03 10:38 ` Grigory Batalov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git