mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 07:02:30 +01:00
@@ -1,6 +1,6 @@
|
||||
|
||||
This is a python wrapper for the WINGs library. With it you can write python
|
||||
based programs which will have WINGs based graphic interfaces.
|
||||
This is a python wrapper for the WINGs library, that can be used to write python
|
||||
based programs with WINGs-based graphic interfaces.
|
||||
|
||||
This module in not built by default. To build it you need python2.1 or later
|
||||
and swig-1.3.14 or later.
|
||||
@@ -8,14 +8,13 @@ and swig-1.3.14 or later.
|
||||
To build it, first compile and install WINGs. after that run 'make' in this
|
||||
directory. 'make install' will install the python module into the python tree.
|
||||
|
||||
run test.py or even WINGs.py for an example.
|
||||
run test.py or WINGs.py for an example.
|
||||
|
||||
the code is not yet finished and probably won't do everything you expect it
|
||||
to do.
|
||||
the code is not finished yet and may fail to work as expected in some cases.
|
||||
|
||||
Note: currently the module expects WINGs installed to build. it won't take
|
||||
the WINGs libraries and header files from the source tree. You need to
|
||||
install WINGs first. Even if an old version of WINGs is already installed,
|
||||
you still need to nstall the newly built WINGs, else the python module will
|
||||
be built against the old version
|
||||
you still need to install the newly built WINGs, else the python module will
|
||||
be built against the old version.
|
||||
|
||||
|
||||
@@ -55,6 +55,16 @@ class WMScreen:
|
||||
raise Error, "'%s' is a read-only WMScreen attribute" % name
|
||||
self.__dict__[name] = value
|
||||
|
||||
def __delattr__(self, name):
|
||||
if name in self.__readonly:
|
||||
#raise AttributeError, "'%s' attribute cannot be deleted from WMScreen instance" % name
|
||||
raise Error, "'%s' attribute cannot be deleted from WMScreen instance" % name
|
||||
try:
|
||||
del(self.__dict__[name])
|
||||
except KeyError:
|
||||
raise AttributeError, "%s instance has no attribute '%s'" % \
|
||||
(self.__class__.__name__, name)
|
||||
|
||||
def mainLoop(self):
|
||||
wings.pyWMScreenMainLoop(self._o)
|
||||
|
||||
|
||||
@@ -8,24 +8,21 @@ from distutils.extension import Extension
|
||||
|
||||
## Get the include dirs
|
||||
wings = os.popen("get-wings-flags --cflags", "r")
|
||||
lines = [x.strip() for x in wings.readlines()]
|
||||
flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x])
|
||||
flags = wings.read().split()
|
||||
include_dirs = [x[2:] for x in flags]
|
||||
#include_dirs += [".."]
|
||||
wings.close()
|
||||
|
||||
## Get the library dirs
|
||||
wings = os.popen("get-wings-flags --ldflags", "r")
|
||||
lines = [x.strip() for x in wings.readlines()]
|
||||
flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x])
|
||||
flags = wings.read().split()
|
||||
library_dirs = [x[2:] for x in flags]
|
||||
#library_dirs += [".."]
|
||||
wings.close()
|
||||
|
||||
## Get the libraries
|
||||
wings = os.popen("get-wings-flags --libs", "r")
|
||||
lines = [x.strip() for x in wings.readlines()]
|
||||
flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x])
|
||||
flags = wings.read().split()
|
||||
libraries = [x[2:] for x in flags]
|
||||
wings.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user