I've made a program that copies the text from a text control to the
clipboard:
def copiar_cmd(padre):
clipboard = wxClipboard()
if not clipboard.Open():
d = wxMessageDialog(self, "Error al trabajar con el
Portapapeles", "Error", wxOK)
d.ShowModal() # Shows it
d.Destroy() # finally destroy it when finished.
texto = panel.zonacmd.GetValue()
textoclip = wxPyTextDataObject(texto)
clipboard.SetData(textoclip)
clipboard.UsePrimarySelection(1)
clipboard.Close()
return
In windows it works allright.
In linux, wrapping gtk, works allright.
Then I go to a Solaris 6, make a rlogin to the linux machine (the same
machine as before), setenv DISPLAY (...), and execute my application from
the linux machine, looking it in my Solaris machine.
I've made a program that copies the text from a text control to the
clipboard:
[...]
In windows it works allright.
In linux, wrapping gtk, works allright.
Then I go to a Solaris 6, make a rlogin to the linux machine (the same
machine as before), setenv DISPLAY (...), and execute my application from
the linux machine, looking it in my Solaris machine.
And the clipboard doesn´t get copied at all.
Any ideas?
The clipboard and the selections in X are owned and managed by the X-Server, not the client (application side.) So you need to look at why the X-Server on Solaris is not supporting the clipboard protocol. Do local apps on the Solaris box handle the clipboard? (Be sure it is the clipboard and not the Primary Selection...) You can also try adding a call to clipboard.UserPrimarySelection() and see if that works. The Selections are a bit different behaviour than the clipboard (normally anything selected by the mouse is automatically put in the Primary Selection, and the middle button pastes from the PS,) but it may be one way to work around the missing feature in the Solaris X-Server.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!