Forum Replies Created
-
AuthorPosts
-
fvilaParticipant
Hi,
We think we have found a systematic crash while copying a cell. The steps to reproduce are:
– Load a library (p.e the example).
– Copy a cell (in this case, the cell 'test').We've tried to copy to a new cell (p.e. from 'test' to 'test2') and to copy to another cell view (from 'layout' to 'layout2').
On the console, the command shown is:
Code:ui().copyCell("example", "test", "layout")There isn't any reference to the new names on the function called.
Thanks in advance.
Francesc.
fvilaParticipantWell, I use linux, and I cannot use OpenGL due to (I suppose) errors with ati driver and desktop 3d acceleration. The main window does not paint correctly (the design area appears as transparent showing the desktop background).
fvilaParticipantI have installed ActiveState python, and it works. But I don't know why it doesn't work with the original python.org version as it works on windows.
For now I'll keep using ActiveState python for Glade, but I'd be grateful if you could investigate why it fails in a system without activestate. It isn't very important because it works with ActiveState.
Maybe I have some issues with my python installation. I'll keep investigating on my part, anyway, testing on more systems.
Best regards,
Francesc Vila
fvilaParticipantI have python 2.6.6. This is the default shipped with ubuntu 10.10. In fact, it tries to load the modules from my python installation.
On windows I have installed python 2.6.6 too, from python.org, not the ActiveState one, but it works.
If you need some more info, tell me.
Many thanks,
Francesc Vila
fvilaParticipantHello,
I am trying to extend glade in order to launch a custom program. What I am trying to achieve is:
1. Export the current cell to a GDS file
1.1. Generate a temporal filename
2. Launch a process
2.1. Read an environment variable
2.2. Spawn the processFor exporting, I'd like to generate a temporal filename (using mktemp, from the tempfile module), but the linux version cannot import this module. Linux version finds the module, but when it is loading its dependencies fails while loading the 'math' module:
>>> import tempfile
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/tempfile.py", line 34, in <module>
from random import Random as _Random
File "/usr/lib/python2.6/random.py", line 45, in <module>
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: No module named mathInstalling python on windows works as expected.
I can read the environment variable on both windows and linux, but when I want to spawn the process, on windows I can load the subprocess module, but on linux, loading fails also when it is trying to load the dependencies. In this case is the 'select' module:
>>> import subprocess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/subprocess.py", line 414, in <module>
import select
ImportError: No module named selectBoth the windows and the linux version of glade are the latest from the website. Windows:
# Glade release version 4.1.39 compiled on Mar 31 2011 09:45:27
# Qt version 4.7.0 on 32 bit platform (little endian)
# Compiled with Visual C++ version 9.0
# Username: francesc Hostname: OptiPlex-W7-VM
# Current time: Thu Mar 31 13:02:26 2011
# Operating system: Windows 7 (Service Pack 1) build 7601
# Number of CPUs: 1
# Python version 2.6.4 (r264:75706, Jan 22 2010, 16:41:54) [MSC v.1500 32 bit (Intel)] for win32And linux:
# Glade release version 4.1.38 compiled on Mar 27 2011 15:23:24
# Qt version 4.7.0 on 64 bit platform (little endian)
# Compiled with gcc version 3.4
# Username: francesc Hostname: OptiPlex
# Current time: Thu Mar 31 12:40:56 2011
# Operating system: Linux OptiPlex 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux
# Number of CPUs: 8
# Python version 2.6.4 (r264:75706, Jan 22 2010, 16:53:10)
[GCC 3.3.4 (pre 3.3.5 20040809)] for linux2And the python version installed, for windows:
c:Usersfrancesc>Python26python.exe –version
Python 2.6And linux:
francesc@OptiPlex:~$ python –version
Python 2.6.6I have checked the PYTHONPATH variable on the linux glade version, and it has the same directories (plus $GLADE_HOME/bin for ui.py) than the python command line interpreter (where I can load both modules).
Is it a bug when compiling glade against python on linux? Should I modify or add some directories to the python path?
Best regards,
Francesc Vila
fvilaParticipantMany thanks. That's perfect.
fvilaParticipantHello,
I was wondering if it would be possible to start a script when glade starts. This way some custom scripts/customization and techfiles/libraries can be loaded automatically.
Thanks,
Francesc
fvilaParticipantI don't know if this is the correct section to post it, but on the "Programming Glade in Python" section, on the "ui" reference, the new function declared as:
createToolBarItem(action, toolBar)
in fact is
createToolBarItem(toolBar, action)
Anyway, by switching the parameter order, the function works as intended, it is just a typo in the documentation.
fvilaParticipantWell, in fact I don't need icons nor toolbar launchers. Just creating a custom menu and keybindings is good enough.
I didn't read thoroughly the ui specs, sorry.
Thanks for your reply and a really good tool!
Francesc
fvilaParticipantHello,
I was looking through ui.py, and I saw some exported functions as createAction(args), and createMenus(args).
I'd like to add some custom launchers to a menu/action in glade, and I thought about using those funcions. Is it possible to extend glade in order to add buttons that launch custom python scripts?
Thanks in advance,
Francesc Vila
-
AuthorPosts