[tuxdroid-svn] r5257 - software_suite_v3/smart-core/smart-server/trunk/util/system
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-31 14:06:15
|
Author: remi
Date: 2009-07-31 15:31:59 +0200 (Fri, 31 Jul 2009)
New Revision: 5257
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py
Log:
* Removed pygtk dependency for the not functional method of clipboard retrieving.
Modified: software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py 2009-07-31 09:20:54 UTC (rev 5256)
+++ software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py 2009-07-31 13:31:59 UTC (rev 5257)
@@ -8,9 +8,6 @@
if os.name == 'nt':
import win32clipboard
import win32con
-else:
- import pygtk
- import gtk
# ------------------------------------------------------------------------------
# Class to control the clipboard.
@@ -35,13 +32,6 @@
win32clipboard.CloseClipboard()
return text
else:
- text = ""
- clipboard = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
- def acceptText(clipboard, mText, data):
- if not mText or mText == '':
- return
- text = mText
- clipboard.request_text(acceptText)
- return text
+ return ""
getText = staticmethod(getText)
|