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)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn