Hello Guys!
How are you all doing?
So I was tinkering with PyAiml and decided to make a chatbot using Pyaiml…and to add some bling, I want it to have a GUI (it wont be an online bot).
What do you think about interfacing Wx(Wxpython, that is) with (Py)aiml? Has anyone here worked on something similar? Do you know where I can get some resources for the same?
Any pointers are welcome too.
Thanks and regards, oh and Happy Programming 
Udgam Mehetre
Using wxPython is a great for IRC chat apps. Although a GUI for a bot app might be more oriented at reading log files as bots are kinda real time all on their own. One thing, I’d recommend against using wx.TextCtrl if your GUI app is going to stay live. It is not the best widget for multiple large text data in live memory over long periods. Better to virtualize the chat data. Others can point you to the virtual widgets. If your bot or chat app is going to take commands be at least aware of Python code injection. Normally not an issue but if you’re evaling user commands it might be possible.
First, Thanks for reply!
One thing, I’d recommend against using wx.TextCtrl if your GUI app is going to stay live.
It is not the best widget for multiple large text data in live memory over long periods.
I was thinking about the same thing! My demo’s are running kinda slow too (though it’s just a 25 line code)
Better to virtualize the chat data.
I assume it’s related to statement above.
How do I virtualize the chat data? Do you mean the functions implementing the chat? Because I was thinking if I could provide a Internet search facility to the bot, followed by learning the searched data; most of the search would be offline, knowledge-base related. Would virtualization affect this in any way?
And another thing…If i were to link my bot with Outlook or thunderbird, can I use commands like “Fetch my mail” or “Send mail to…” ?
The reason is that most gui’s have buttons and boxes…I’m thinking of a Gui which is mostly chat based, a la Siri (without the speech, that is :p)
Thanks and regards,
Udgam
···
On 14 October 2013 19:55, Dev Player devplayer@gmail.com wrote:
Using wxPython is a great for IRC chat apps. Although a GUI for a bot app might be more oriented at reading log files as bots are kinda real time all on their own. One thing, I’d recommend against using wx.TextCtrl if your GUI app is going to stay live. It is not the best widget for multiple large text data in live memory over long periods. Better to virtualize the chat data. Others can point you to the virtual widgets. If your bot or chat app is going to take commands be at least aware of Python code injection. Normally not an issue but if you’re evaling user commands it might be possible.
–
You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/V6bN5JqA1RE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
Udgam Mehetre
" *Imagination is the only weapon in the war against reality.*"
By virtualize I mean there are widgets that better handle large sets of data, like 10 million lines of text instead of say 64K chars like TextCtrl. I’m not sure which ones but if you check out the wxPython demo it might be the widgets with DVC or perhaps the Listctrl_Virtual. Basically what happens, I think, is you speed up data access by changing the way the data is accessed and painted to the client area of the widget.
As far as sending text commands of instead of clicking widgets like buttons that’s totally doable. Not being familiar with your bot library there is also a “cmd” python library that you might give you ideas of how to structure your parsing of chat commands.
Thanks, I’ll check that out.
Regards,
Udgam
···
On 16 October 2013 20:19, Dev Player devplayer@gmail.com wrote:
By virtualize I mean there are widgets that better handle large sets of data, like 10 million lines of text instead of say 64K chars like TextCtrl. I’m not sure which ones but if you check out the wxPython demo it might be the widgets with DVC or perhaps the Listctrl_Virtual. Basically what happens, I think, is you speed up data access by changing the way the data is accessed and painted to the client area of the widget.
As far as sending text commands of instead of clicking widgets like buttons that’s totally doable. Not being familiar with your bot library there is also a “cmd” python library that you might give you ideas of how to structure your parsing of chat commands.
–
You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/V6bN5JqA1RE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
Udgam Mehetre
" *Imagination is the only weapon in the war against reality.*"