Programming :: Write A Gui App With Python2.6.4 And Wx On Win XP?
Feb 25, 2010
I am trying to write a gui app with python2.6.4 and wx on win XP. I am attempting to resize an image with Imagemagick from within the program using os.popen and os.system in a thread.
Code:
os.popen("mogrify -resize " + str(x) + "x" + str(y) + "!" + " images/static/" + my_ref + ".gif")
orCode:
os.system("mogrify -resize " + str(x) + "x" + str(y) + "!" + " images/static/" + my_ref + ".gif")
they both work as far as resizing the image but when os.system is used a command shell opens during the mogrify and when os.popen is used the command shell does not show but the rest of the program freezes until mogrify is done.
I would prefer that the program did not freeze during this process and the command shell did not show.I have tried using wx to scale the image but the scaled image looks crappy.anyway is there a way to use os.system and not have the shell show?
View 2 Replies
ADVERTISEMENT
Dec 21, 2010
I would like to install wxpython2.8 for python2.5, which I installed as an alternative version in the presence of the standard python2.6 using xubuntu 10.04 lucid lynx (see the end of this thread for how I did it).how would I do this without the installation going for the standard 2.6 version? I found some notes to that on the web:
[URL]
I tried those, but somehow my wxpython installation got borked and would not do anything afterwards.
View 4 Replies
View Related
Jun 9, 2011
Does anyone know how to update python2.4 to 2.7 without removin 2.4
View 3 Replies
View Related
Jun 13, 2010
I try to install ultamatix on my ubuntu 10.04 system and i come up with the same error every time:
Error: Dependency is not satisfiable: python2.5
what do i do to successfully use ultamatix
View 2 Replies
View Related
May 8, 2011
So far, I have done all the steps (including creating django.wsgi in the project). The step left is to turn on the httpd, but error put exit in this very last step.
Code:
<user> #: ./apachetrl start
httpd: Syntax error on line 450 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
View 2 Replies
View Related
Jan 13, 2010
When executing different programs varying from the Ubuntu Software Manager to pstotxt and lots of other programs I get tons of errors that have to do with Python2.6, whatever it is. I think it got corrupted since my netbook turned of while installing some (Dutch) language packs.The smaller problem, is that the language packs failed to install properly, and I can see some Dutch sentences between the English ones sometimes...The major prolem, is that somehow a lot of programs won't work anymore, mainly terminal programs. pstotxt is one of any examples. Installing software doesn't always work because of these errors.
This is the output when I want to use pstotxt to convert a .pdf to .txt file:
Code:
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 8, in <module>
import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
code....
View 3 Replies
View Related
Aug 17, 2011
So I've been looking to try out Airpwn, but it seems to only run with Python2.4. Natty, buy default uses Python2.7, and Airpwn will not compile with it. Python2.5 is the lowest in the repos. I tried just downloading Python2.4, and doing the "./configure, make, make install" dance, but I end up with
Code:
root@L1NUX:~/Python-2.4# make
[...code snipped to save space...]
Aborted
make: *** [sharedmods] Error 134
install Python2.4 on Natty? Any method will do fine. If you have a .deb that would be even greater. Anyone who's been able to run Airpwn on something other than Python2.4 is also welcome to tell me their solution. (There used to be a .deb for Airpwn itself, but it seems one was never made for Natty.)
View 2 Replies
View Related
May 10, 2011
I am using swig framework to invoke certain C APIs in a C Library from a python program. Unfortunately the python software needs to run on a 64 bit virtualization platform, whereas the C library is 32 bit (its a 3rd party library whose 64 bit version is not available). Lets say the name of the swig generated shared library is _my_swig.so. When the python wrapper makes "import _my_swig" call, i see the following error
ImportError: -snipsnip-/_my_swig.so: wrong ELF class: ELFCLASS32
which probably means I am trying to import a 32 bit library from 64 bit python. Can anybody suggest any workaround?
View 3 Replies
View Related
May 9, 2011
When I run the install of 'Gmail Backup' (from URL...) an error msg appears stating that I must have python2.5 - I presently have python2.8Is there any way to solve this without destroying my Slackware 13.37 installation?
View 6 Replies
View Related
May 21, 2010
I am driving Fedora 12 and need to test an application GUI with Python 2.4, 2.5 and 2.6. Python2.6 is native in F12 at /usr/lib... and I have alt-installed 2.4 and 2.5 at /usr/local/lib... Site-packages directories for 2.4 and 2.5 are empty. I have tried different tricks to install gtk-2.0 and pygtk in the site-packages of 2.4 and 2.5. But could not find a working solution.
My latest trial was to download Fedora 7 live and copy from its python2.5 gtk-2.0 and pygtk.* to F12:/usr/local/lib/python2.5/site-packages. Results were as follows:
Python 2.5.5 (r255:77872, May 13 2010, 17:15:51)
[GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> import gtk
Traceback (most recent call last):
[Code]...
View 2 Replies
View Related
Mar 30, 2011
I'm relatively new to Ubuntu and these forums. I ran rkhunter, and saw this warning in the check for backdoor ports: [14:45:09] Warning: Network TCP port 32982 is being used by /usr/bin/python2.6. Possible rootkit: Solaris Wanuk Use the 'lsof -i' or 'netstat -an' command to check this. I also saw these warnings toward the bottom:
[Code]....
I was wondering first of all about the first warning, the port. I have a feeling that the second set of warnings are false positives, but I would be open to thoughts on that as well.
View 9 Replies
View Related
Aug 3, 2010
I installed tinyos-2.x in Ubuntu lucid. I tried to simulate tossim environment for simple Blink application using the command: make micaz sim and ended up with the following error:
mkdir -p simbuild/micaz
make: python2.5-config: Command not found
make: python2.5-config: Command not found
make: python2.5-config: Command not found
and
Python.h: No such file or directory
and
make: *** [sim-exe] Error 1
Eventually installed python-old-doctools package which supposedly includes python2.5-config package but alas! It doesn't compile yet.
View 4 Replies
View Related
Oct 16, 2010
I have the following issue:
Running
Code:
results in above error.
Running
Code:
results in above error.
Running
Code:
Is not able to fix this.
View 2 Replies
View Related
Jun 24, 2010
I just started messing around in Linux programming, and I wanted to create a simple test program to open a file, read to it, and write to it. I can open and read it, but write always gives errno = EBADF. I've messed with file creation permissions and I can figure out why write() thinks it's a bad file descriptor but not read().Here is my code:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[code].....
View 1 Replies
View Related
Mar 10, 2011
I need to write a GUI for the web to gather the following info:
Username
Password
SomePlainText
Path1
PathN
Of course, I then need an 'submit' button. I then want to have the user upload all paths supplied from their machine to my server. I hope to work with this data as arguments for a bash script. Also, I need to work with all possible client OSes consistently. What language should be used?
View 3 Replies
View Related
May 30, 2010
Can you offer me the code about fmod() in C. I want to know how this function work, i am very interested in it because i have no idea to implement it, i want to know... how to write the function... not 'how to use the function' can anyone post the source codes of this function here?
View 6 Replies
View Related
Mar 31, 2009
I've been working at learning how to write makefiles and I'm a bit stuck.
I've got a fairly simple project that will eventually be a framework for TCP/IP Communications in evolutionary algorithms that I've been using Eclipse to develop.
For personal development I want to learn how to write makefiles by hand but have gotten kind of stuck
Here is the makefile as it stands now:
Code:
Port and Mailbox are a virtual class and a template class respectively.
I get these errors when I run make:
Code:
So for some reason every single function in the Connection class has been defined multiple times. I assume because it's included as a dependency for multiple targets, but I've seen this in numerous examples that apparently work.
Everything in libpthread is undefined because I'm not linking in the library. I've tried adding the library options to the LDFLAGS variable but that doesn't seem to work either.
View 3 Replies
View Related
Jul 16, 2010
I want to learn to write an USB driver on linux 2.6.x I tried to find some documents but i could not find documents for it . Most of it gave direct driver code as reference.
View 1 Replies
View Related
Feb 26, 2010
I want to write a program (in C), which does 4 or 6 simultaneous calculation. Is there away of doing something like:
do at the same time{
Core 1 do:
this_thing_1
[code]....
View 3 Replies
View Related
Mar 24, 2011
I'm trying to write a toy linux shell. For starters this is what I'm trying to do:
1. Start a new process with fork.
2. Execute a program in the new process with execl().
3. Redirect the output from the new process from STDOUT to another file descriptor, using dup2(2).
4. In the parent process, read the output from the child process and write it to the screen.
Creating a new process and executing a program in it is no problems, the problem is that I can't seem to capture the output from it in the parent process.
Code:
//digenv
//C++arl 2011-03-24
#include <stdio.h>
#include <sys/types.h>
[code]...
View 14 Replies
View Related
Jun 3, 2011
[code]...
I manage to write apr4sens into file,works fine.But how to write it into array,which I could later reshape and so on. I tryied like this
group=apr4sens. It doesn't work.
View 1 Replies
View Related
Jan 30, 2010
I'm trying to write a .sh script that allows me to run multiple other .sh scripts at once.
My problem occurs within a Variable:
I have set
S1 to S7 to be the name of the .sh
A="7"
B="S$A"
C="$S$A" <- and this is where my problem is
I want C to be the content of S7 till S1 but if I run this line it will of course look for the content of S and link it with the content of A.
How can I correct this?
Edit:
WHERE="/home/X/Y/"
SH=".sh";
A="7";
B="S$A";
C="$B";
[Code].....
View 6 Replies
View Related
Nov 29, 2010
i have a text file like
abc abc abc abc
abc abc abc abc
--- --- --- ---
i want to add a string xyz to end of each line..
abc abc abc abc xyz
abc abc abc abc xyz
abc abc abc abc xyz
--- --- --- --- xyz
--- --- --- --- xyz
how do i do this in bash?
View 13 Replies
View Related
Apr 6, 2009
I am trying to write a CMakeList.txt for a project (A). The project needs to use the library of another project (B). For gcc, using -L <path> -ldl works. How can I convert that into cmake file? I tried include_directories, that doesn't seem to work
View 3 Replies
View Related
Dec 29, 2010
I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:
Code:
#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {
[code]....
View 1 Replies
View Related
Mar 29, 2009
I want to know how to write a script that would use the standard Linux FTP command to download all the mp3 files from a FTP server cause GET *.mp3 doesn't work. Also how would I write the same script but as a batch file to be run in windows cmd through the windows native FTP command?
View 4 Replies
View Related
Jan 7, 2010
I have source code that plays video stream, and can open a remote video file if provided with a URL. But I have a problem getting video from ...... the URLs I get look like:
[URL]
and my code expects something like [URL] I need to modify the code, such that it will find the actual file.
View 1 Replies
View Related
Oct 11, 2010
I know, I know..."How long is a piece of string"?
I have one of these devices:
[URL]
Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?
View 2 Replies
View Related
Jan 16, 2010
I'm learning PHP and I was curious about this. I've learnt about cookies and sessions, and I'd like to know - which one do you use for a shopping cart? What's the actual mechanism behind it? As the user builds up a cart full of stuff, is the data for that maintained on the server-side in a MySQL database or something?
View 4 Replies
View Related
Feb 16, 2011
wants to do miniproject as part of the academic curriculum using Computer graphics on Linux using C or C++. Can any one direct me to a direction how i can proceed. I know basics of C and C++
View 9 Replies
View Related