Back end written, now trying to use wxPython for the front end and
struggling ...
tool_bar = self.CreateToolBar()
exe_tool1 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\do_clears.png'))
exe_tool2 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\save.png'))
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\load.png'))
tool_bar.AddSeperator()
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\help.png'))
tool_bar.Realize()
Can't understand why I get ...
Traceback (most recent call last):
File "C:\Program Files\FX Hammer\FX Hammer.py", line 20, in <module>
import core.gui
File "C:\Program Files\FX Hammer\core\gui.py", line 499, in <module>
MainWindow(None)
File "C:\Program Files\FX Hammer\core\gui.py", line 60, in __init__
tool_bar.AddSeperator()
AttributeError: 'ToolBar' object has no attribute 'AddSeperator'
C:\Program Files\FX Hammer\core>
Why cant I get the separator to show up ?, without it all is well
Thanks in advance
Dave
···
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
Hi,
Back end written, now trying to use wxPython for the front end and
struggling ...
tool_bar = self.CreateToolBar()
exe_tool1 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\do_clears.png'))
exe_tool2 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\save.png'))
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\load.png'))
tool_bar.AddSeperator()
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\help.png'))
tool_bar.Realize()
Can't understand why I get ...
Traceback (most recent call last):
File "C:\Program Files\FX Hammer\FX Hammer.py", line 20, in <module>
import core.gui
File "C:\Program Files\FX Hammer\core\gui.py", line 499, in <module>
MainWindow(None)
File "C:\Program Files\FX Hammer\core\gui.py", line 60, in __init__
tool_bar.AddSeperator()
AttributeError: 'ToolBar' object has no attribute 'AddSeperator'
C:\Program Files\FX Hammer\core>
Why cant I get the separator to show up ?, without it all is well
Because "Seperator" is not an English word, you may want to change it
to "Separator" (i.e. AddSeparator).
One day some English linguist expert will have to explain to me why
that word in particular is so easy to misspell 
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 23 February 2012 11:02, dave selby wrote:
LOL, thank you so much .... do you have any idea how long I have
looked at that and just not seen it
Cheers
Dave
···
On 23 February 2012 10:09, Andrea Gavana <andrea.gavana@gmail.com> wrote:
Hi,
On 23 February 2012 11:02, dave selby wrote:
Back end written, now trying to use wxPython for the front end and
struggling ...
tool_bar = self.CreateToolBar()
exe_tool1 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\do_clears.png'))
exe_tool2 = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\save.png'))
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\load.png'))
tool_bar.AddSeperator()
exe_tool = tool_bar.AddLabelTool(wx.ID_ANY, 'Clear',
wx.Bitmap(INSTALL_DIR + '\misc\images\help.png'))
tool_bar.Realize()
Can't understand why I get ...
Traceback (most recent call last):
File "C:\Program Files\FX Hammer\FX Hammer.py", line 20, in <module>
import core.gui
File "C:\Program Files\FX Hammer\core\gui.py", line 499, in <module>
MainWindow(None)
File "C:\Program Files\FX Hammer\core\gui.py", line 60, in __init__
tool_bar.AddSeperator()
AttributeError: 'ToolBar' object has no attribute 'AddSeperator'
C:\Program Files\FX Hammer\core>
Why cant I get the separator to show up ?, without it all is well
Because "Seperator" is not an English word, you may want to change it
to "Separator" (i.e. AddSeparator).
One day some English linguist expert will have to explain to me why
that word in particular is so easy to misspell 
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
Andrea Gavana wrote:
Because "Seperator" is not an English word, you may want to change it
to "Separator" (i.e. AddSeparator).
One day some English linguist expert will have to explain to me why
that word in particular is so easy to misspell 
You are exactly right that it's an easy mistake to make. The mnemonic I
use is "I smell 'a rat' in separate".
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.