Ubuntu :: Put A Print Icon Into A Python Program?
Dec 3, 2010
I am wanting to put a print icon into a Python program and will use printing via the command line via calling lp or lpr.
So a simple question: Whats the difference between lp and lpr?
Also when you type man lp or man lpr the man page says Apple Inc?
View 2 Replies
ADVERTISEMENT
Dec 16, 2010
I downloaded this programs source and I'm having a hard time figuring out how to install it. I assume it is python source? I tried downloading the debian file but could not figure out how to install it aswell. I downloaded the software from [URL]
View 9 Replies
View Related
Jun 14, 2011
i have ubuntu 10.04 and python 2.6 installed how do i run, stop or restart a .py file from the command line.
btw im using Putty from a windows computer
View 1 Replies
View Related
Jun 3, 2011
I need to know how to make a program use a version of python older than the newest one. I am trying to run the Traipse fork of OpenRPG. Through their forums, I have learned that one of my problems is that I am running too new a version of python. I have python 2.7.1 installed.
I also have python2.6.6 installed, so I should be able to use that. My first thought was to uninstall 2.7.1 and just use the older version. The problem is that if i uninstall 2.7.1, it wants to also uninstall all the packages dependent on that program. Let's face it, in Natty Narwhal, that is pretty much everything.
Do you know how to force Traipse make it use the 2.6 version?
View 2 Replies
View Related
Jun 24, 2011
I need to write a program for time. like i have 2 tasks both minutes and hours.
like this
1st task=5 hours and 30 minutes
2nd task=2hours and 45 minutes
Together they will take 8 hours and 15 minutes.
I need to write a program thats called ADDTIMES to do something like this.
This is what i have so far.
H1=int(input("enter the number of hours:")) etc..
View 6 Replies
View Related
Apr 7, 2011
How can i embed python script in C program?
View 1 Replies
View Related
Dec 21, 2009
I want to be able to run a program in a python script, and capture it's output in a variable. I figured out that I can execute it with os.system(), but how do I capture it's output and store it in a variable?
View 1 Replies
View Related
Jan 30, 2011
Is it possible to easily get the number of desktops, add/remove desktops, and get window titles, icons, and screenshots from a C++ or Python program?
View 12 Replies
View Related
Aug 28, 2010
I'm trying to figure out how to continue execution of a Python program while a background task is going on.
In bash, it is adding "&" to the end as in:
Code:
#! /bin/bash
find / -iname "*.py" > /tmp/all_pys &
echo "looking for all python scripts and putting them in /tmp/all_pys"
(yes, I know I could just put the echo BEFORE the find but I just use it for example)
Say I do that in python (not necessarily running the shell, but perhaps using scriptutil.ffind or something similar), but want to allow the user to be doing something else while running that search in the background, how would I thread, fork, subprocess (not to be confused with the module and Popen) [or whatever I should call it] that?
View 14 Replies
View Related
Sep 29, 2010
I have had bad experiences using Evince and Okular to print SOME pdf files. For example I scanned a bunch of last year's medical records and bills to a pdf file using my scanner and Xsane. I can view the file but not print a page to my Brother laser printer. Same goes with my CITI bank Master Card statements. They appear to be images of the paper statement - not sure if that has anything to do with it.I had to resort to using a Windows 7 virtual machine running the huge bloated brand name Acrobat reader
Anyhow... this afternoon I built a VMWare virtual machine of the latest Ubuntu 10.10 beta. Setup my laser printer and decided to try to print one of my problem files. Evince did not do it. pdftops pegged the CPU at 100% and it stayed there until I killed it. Then one page came out with some not helpful error messages. I then looked in the Software Store and started down the list of pdf viewing programs. However, my plan was to keep trying programs until I found one that worked. Success came soon with ePDFViewer. It works on both 10.10 and 10.04 (my current desktop) and will print any pdf I have thrown at it. I am now a happy camper as far as pdf files are concerned.
View 1 Replies
View Related
Jan 19, 2011
Kernel 2.6.21.5, Slackware 12.0
Is there a linux/unix program that gives the following info?:
(a) Installed hard disks manufacturers names.
(b) Disk geometry (number of cylinders, heads and sectors per track).
View 5 Replies
View Related
Dec 28, 2010
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies
View Related
Aug 5, 2011
i installed elegant gnome theme in ubuntu and i delete all others themes with their icons too but when i start to use my others program usually, after i installed elegant gnome theme ..i find that Kopete program his tray icon doesn't display beside all his other icons like online offline away icons indicators ,and here is a picture about how the program look in start bar with no icon ,so how can i fix that and get icons of this program back although i didn't delete his icons and when i deleted theme and icons i delete them from "appearance preference".
View 1 Replies
View Related
Apr 16, 2010
I need to write program (preffer Python) to change range for users. Does anyone know some library which can help me to do that? Maybe someone has written program like that?
View 5 Replies
View Related
Jan 11, 2011
Ubuntu 10.04 UNR I installed the German<>English dictionary program 'Ding' from the Ubuntu Software Center but its program icon was not created with which I can start the program. The icon is not listed in System>Main Menu. Synaptic does show the program is installed. How can I install an icon that will enable me to start the program?
View 2 Replies
View Related
Oct 4, 2010
im searching a kde programm to show current print jobs. I've installed aptosid (actual version).I've searched the repository and I only found printer-applet which does not run in aptosid - I got the following error messages:
Code:
Traceback (most recent call last):
File "/usr/bin/printer-applet", line 1161, in <module>
[code]...
View 2 Replies
View Related
Jun 18, 2010
I use GnuCash on my desktop but want to be able to access it from my laptop. I can connect via sshfs to the program icon on my desktop but when I click it I am told I cannot do this due to security issues. does anyone know if its possible to get this to work?
View 1 Replies
View Related
Jun 8, 2011
I run Ubuntu 10.10, recently I got this problem. if I open more than one program, and click on icon of them on task bar to switch between them, KDE crash and restart with log in screen. now since 2-3 days this restart also happening when I ALT+TAB to switch between running programs .
View 4 Replies
View Related
Apr 3, 2010
Navbox is in my documents folder. to open the program I have to open the folder, right click on the .exe file, then click on 'open with Wine'. This works, but I would rather have an icon on my desktop and be able to open the program just by clicking on the icon.
View 2 Replies
View Related
Jan 3, 2011
I used to use notation player to do this in windows, although it works under wine i don't have the ability to print or print as a pdf file so i was wondering if theres a good alternative
View 7 Replies
View Related
Jul 2, 2009
i want to know command to Add Compiz Fusion Icon to Startup Applications Preferences at Stratup program . i want to Compiz Fusion Icon run when i login .
View 5 Replies
View Related
Jun 29, 2011
The icons in the applications pane are very big, I need to scroll multiple times inorder to reach the last program. How to reduce the icon size, so that all the installed programs can be visualized without to much scrolling?
View 14 Replies
View Related
Dec 30, 2010
how can I create an icon on the KDE4-desktop to start a program?
The program to start was not installed with YAST.
View 4 Replies
View Related
Jul 11, 2011
I am just asking how this works in general. I know Python can wrap a C code, but here it seems Python is already integrated with this C program.Would it be correct to say one would have to understand the C code in addition to py programming in order to accomplish anything useful here?I need to control the program, and especially import its output to some algorithm that accomplishes command and control in the way of bash scripts or whatever.
View 2 Replies
View Related
Mar 22, 2009
I want to be able to do
sudo ./program.py
instead of always having to do
sudo python program.py
What do I need to change?
View 5 Replies
View Related
Nov 30, 2009
I've already used line split stuff to transform my data into something like this in a text file:
Code:
['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']
[code]....
How can I get this on a python program so I can manipulate it as an array?
View 3 Replies
View Related
Oct 27, 2010
in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work
View 3 Replies
View Related
Jul 17, 2010
Python 3 want situation for python 2?Python 2 become stop?
View 1 Replies
View Related
Jan 7, 2011
yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:
[Code]....
View 2 Replies
View Related
Mar 23, 2011
Interesting problem: For the first time with Xubuntu 10.10 64bit, I am finding certain applications print corrupt. A varying amount of letters / numbers either get substituted/print a blank space/ print a box etc etc. This corruption seems to happen from a Pdf ( evince ) or Spreadheet ( Gnumeric ) Opening the same Pdf on another machine (ubuntu 10.10 32bit) prints perfectly. Opening the same .xls file on the original computer but using OOo Calc prints perfectly.
I guess I have ruled out any problems with the printer itself or the network JetDirect box. I have re-installed CUPS and evince and upgraded to the latest version of HPLIP but the problem appears unchanged.
View 2 Replies
View Related