Search Results

Showing results 1 to 40 of 41
Search took 0.01 seconds.
Search: Posts Made By: MaxVK
Forum: Python May 7th, 2009
Replies: 5
Views: 439
Posted By MaxVK
Okay, the problem has been solved with some help from others. The problem was that the item I wanted to delete was a child item, and I needed to use the parent to perform the remove:
...
Forum: Python May 5th, 2009
Replies: 5
Views: 439
Posted By MaxVK
Yes. I get the same error, which is simply that the item is not in the list. Iv tried getting the element half a dozen ways, and so far that error is the closest that Iv come to removing an item.
...
Forum: Python May 5th, 2009
Replies: 5
Views: 439
Posted By MaxVK
Hmm, okay, I can run with that - Now how do I get a reference to the instance rather than the contents?
Forum: Python May 5th, 2009
Replies: 14
Views: 945
Posted By MaxVK
Hi Paul ;)

I'm using Ubuntu here and I use a combination of wxWidgets and Geany, sometimes with wxGlade or XRCed to create GUI's.

Iv not really played with any other toolkits for long -...
Forum: Python May 5th, 2009
Replies: 5
Views: 439
Posted By MaxVK
Hi. I have an xml file like this:

<tree>
<category title="Item 1">item 1 text
<subitem title="subitem1">subitem1 text</fileitem>
<subitem title="subitem2">subitem2...
Forum: Python Feb 16th, 2009
Replies: 4
Views: 492
Posted By MaxVK
Cheers Paul, Ill have to do some more hunting about.

Max
Forum: Python Feb 16th, 2009
Replies: 4
Views: 492
Posted By MaxVK
Hey Paul, thanks.

But it didn't work. I already bind to EVT_RICHTEXT_CHARACTER (Delete doesn't work with or without it), but no matter which event I use, the delete key is not doing anything, and...
Forum: Python Feb 15th, 2009
Replies: 4
Views: 492
Posted By MaxVK
Hi, I have written a nice little editor using the RichTextCtrl, and so far everything is working fine, however, for some reason the delete key does not work as expected.

If I select something and...
Forum: Python Dec 29th, 2008
Replies: 1
Views: 404
Posted By MaxVK
Doh! I already answered this myself in another project - the relevant code can be found here:http://www.daniweb.com/forums/post743573.html#post743573

Max
Forum: Python Dec 28th, 2008
Replies: 1
Views: 404
Posted By MaxVK
Hi. I have tree control with a structure already in it.

A function returns a string that matches one of the items in the tree control structure (They are all Unique), and I need to select that...
Forum: Python Nov 29th, 2008
Replies: 3
Views: 350
Posted By MaxVK
Thanks sneekula, the problem that I have is that the selected text in a wx.HTML control, and while its possible to select the text, creating a popup menu is very hard because there is no way to get...
Forum: Python Nov 29th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Okay, Iv managed to answer this myself, although the method is a bit of a workaround hack!

The code is below, but Ill explain quickly, the file that holds the structure of the tree is in the...
Forum: Python Nov 29th, 2008
Replies: 3
Views: 350
Posted By MaxVK
Okay, Iv spent hours hunting for something to help me and so far nothing has come even close! All the code seems to be either for Windows only, or it simply does not work under Ubuntu 7.10, which is...
Forum: Python Nov 28th, 2008
Replies: 3
Views: 350
Posted By MaxVK
Hi, Iv been playing about trying to get a string onto the clipboard, but Iv had no luck at all.

Iv done quite a bit of searching, but Iv only ever seen any examples that relate to Windows, and I'm...
Forum: Python Nov 28th, 2008
Replies: 1
Views: 347
Posted By MaxVK
Well, Iv had a little joy so far - Iv managed to get a click event recognised like this:

self.Bind(html.EVT_HTML_CELL_CLICKED, self.krtc_OnClick, self.docMAIN)

...
...
...
def...
Forum: Python Nov 27th, 2008
Replies: 1
Views: 347
Posted By MaxVK
Hi. I have an HTML Control on my frame and I am able to display pages in it:


self.krtc = html.HtmlWindow(self, style=wx.NO_FULL_REPAINT_ON_RESIZE);
self.krtc.LoadPage("apitest.html")

...
Forum: Python Nov 26th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Well! Now I know what dictionaries are! ;) However, I'm no closer to loading/saving the structure of a tree, in fact I managed to get my program to crash every time I tried!

I'm having trouble...
Forum: Python Nov 25th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Thanks jlm699, Iv not gotten round to dictionaries yet, but Ill take a look.

Max
Forum: Python Nov 25th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Thanks Gribouillis - I still cant get it to work, but I did find this during my searches:



I found it here Link (http://lists.wxwidgets.org/pipermail/wxpython-users/2008-June/076291.html) so...
Forum: Python Nov 24th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Thanks Gribouillis, but I cant get that code to work at all - some problem with the '@staticmethod'.

Thanks Paul, Ill look that up.

Regards

Max
Forum: Python Nov 24th, 2008
Replies: 9
Views: 1,622
Posted By MaxVK
Hi there. I'm writing a program that uses a tree control as a form of navigation, and the structure of the tree is set up in code as the program loads.

This is fine for now, but there is the...
Forum: Python Nov 17th, 2008
Replies: 5
Views: 557
Posted By MaxVK
Thanks evstevemd, Iv already got that one bookmarked! Its the kind of page that I will need to use while I'm playing with the control, but before that I need a kickstart to get it all moving in that...
Forum: Python Nov 16th, 2008
Replies: 5
Views: 557
Posted By MaxVK
Yes, thanks. I did mention that Id looked at this with little joy, although I called it the "wxWidgets examples". My fault for not making myself clear!

The problem with the demo file is that I...
Forum: Python Nov 16th, 2008
Replies: 5
Views: 557
Posted By MaxVK
Hi there. Iv been searching (this forum and Google) for examples using the StyledTextCtrl, so that I can see how the thing actually works, but with no real joy. Iv found a couple of very basic...
Forum: Python Nov 13th, 2008
Replies: 7
Views: 722
Posted By MaxVK
Yes, Ill agree with you there - speed of execution is the key since most machines today have plenty of memory to spare, however, I still like to keep things as slim as possible.

regards

Max
Forum: Python Nov 12th, 2008
Replies: 8
Views: 536
Posted By MaxVK
Yes, I was thinking along those lines because it looks a lot simpler than setting up a large number of shortcuts for the rich text control.

Thanks

Max
Forum: Python Nov 12th, 2008
Replies: 7
Views: 722
Posted By MaxVK
Hmm. Care to expand on that? I like to hear about other ways of doing things.

Cheers

Max
Forum: Python Nov 12th, 2008
Replies: 7
Views: 722
Posted By MaxVK
One more thing...

So far the Frames have all been created at run time - by this I mean, when I exit Frame1, Frame2 still has to be destroyed itself before the application will close gracefully....
Forum: Python Nov 12th, 2008
Replies: 7
Views: 722
Posted By MaxVK
My apologies - I must confess that I didn't use the search before I posted.

And.. Excellent, many thanks. That code works nicely and I can transfer what I need into my own application.

Regards...
Forum: Python Nov 12th, 2008
Replies: 8
Views: 536
Posted By MaxVK
Hmm. Text Editor. Well, sort of.

I'm an author, and the program is called 'Author Tool'. It does incorporate a text editor, but the menu would be sort of superfluous - As a tool it is designed to...
Forum: Python Nov 11th, 2008
Replies: 7
Views: 722
Posted By MaxVK
Hi. I need to have two frames (not necessarily visible together and possibly more than two), and I need to be able to interact between them.

For example - if I have two frames, one visible and one...
Forum: Python Nov 11th, 2008
Replies: 8
Views: 536
Posted By MaxVK
Hmm, thanks. I was hoping to avoid a menu since it wouldn't necessarily fit into what the window would be doing, but it might prove the easiest way to do this.

Thanks for your help

Regards
...
Forum: Python Nov 11th, 2008
Replies: 8
Views: 536
Posted By MaxVK
Ah thanks Paul - That did it!

I'm playing with the code now (at least until I have to do some more work!) and I want to pick up some key presses to activate various functions (Bold etc). Is this...
Forum: Python Nov 10th, 2008
Replies: 8
Views: 536
Posted By MaxVK
Hi there.

I am using a RichTextCtrl on a window with a toolbar. The toolbar has a save button on it that is disabled by default when the application starts.

I need this button to become enabled...
Forum: Python Nov 9th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Okay, the problem has been sorted out now:

The demo saves nicely in XML (.xml or .ox) but when it comes to loading the code is not correct and the filter only shows *.*

To correct this, in the...
Forum: Python Nov 9th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Hmm, I'm using wxPython 2.8.9.1 and Ubuntu 7.10 but I can see a possible problem here:

When it comes to loading, there is no choice of filters, only "*" - this might well be the cause of the...
Forum: Python Nov 9th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Ah, just for a moment there you gave me some hope!

Alas, it doesn't work! The file is certainly saved in XML, but when it comes to loading it back again all you get is the XML code, and no nice...
Forum: Python Nov 8th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Not 'fly code', I mean on the fly, as in added to the control at startup using code (as opposed to loading a file).

Anyway, yes, Iv been using Google for this, but Iv come up with nothing that...
Forum: Python Nov 8th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Thanks for your replies:

evstevemd: The demo example looks very nice, but the rich text that is shown is created on the fly in code. The actual control cannot load or save RTF files (at least in...
Forum: Python Nov 7th, 2008
Replies: 12
Views: 1,643
Posted By MaxVK
Hi there. I started with wxPython (Under Linux) a little while ago and I'm enjoying very much, however, there doesn't seem to be a control for working with Rich text.

Iv found a few articles...
Showing results 1 to 40 of 41

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC