Re: adding "Print" menu in wxPython

2011-01-26 Thread rantingrick
On Jan 26, 10:07 am, Akand Islam wrote: > I really appreciate your cooperation. The codes you have written print > in command window, but I want to print (i.e. a popup window will > appear to select printer in order to print). Please assist me > regarding this. Ok, read on... > I am optimist th

Re: adding "Print" menu in wxPython

2011-01-26 Thread Akand Islam
On Jan 26, 12:54 am, rantingrick wrote: > On Jan 26, 12:19 am, rantingrick wrote: > > Actually i found more cruft. Here is something that would be > acceptable although i had to wrap lines shorter than i normally would > for the sake of Usenet. Who ever wrote that code should be lashed 50 > times

Re: adding "Print" menu in wxPython

2011-01-25 Thread rantingrick
On Jan 26, 12:19 am, rantingrick wrote: Actually i found more cruft. Here is something that would be acceptable although i had to wrap lines shorter than i normally would for the sake of Usenet. Who ever wrote that code should be lashed 50 times! You still need some error handling for the open an

Re: adding "Print" menu in wxPython

2011-01-25 Thread rantingrick
On Jan 25, 9:51 pm, Akand Islam wrote: > Thanks for your response. Actually I already know I have to create > "OnPrint" method followed by adding the menu named "Print" that calls > "OnPrint" method. But the problem I am facing is to implement it. Here > are the codes I am adding (from Tutorial) w

Re: adding "Print" menu in wxPython

2011-01-25 Thread Akand Islam
Thanks for your response. Actually I already know I have to create "OnPrint" method followed by adding the menu named "Print" that calls "OnPrint" method. But the problem I am facing is to implement it. Here are the codes I am adding (from Tutorial) which make an editor and I want to add printing o

Re: adding "Print" menu in wxPython

2011-01-25 Thread rantingrick
On Jan 25, 5:52 pm, Akand Islam wrote: > > I will appreciate if someone please show me how to add > printing option. Hello Akand, Well the first step would be to create a stub "OnPrint" method and add a command to the File menu named "Print" that calls the "OnPrint" method. Can you do this part

adding "Print" menu in wxPython

2011-01-25 Thread Akand Islam
To make a simple editor using wxPython, sample code is available in wxPython's tutorial page (http://wiki.wxpython.org/ WxHowtoSmallEditor). However, in addition I want to add "print" menu which will print the contents of editor (i.e. whatever written in editor). I will appreciate if someone please