Programming :: Automatically Scrolling Text Box In PyGTK?

Jan 4, 2010

I am playing around with PyGTK and come across a problem: When I put a TextView inside a ScrolledWindow, and type text into the TextView until it reaches the edge, the cursor goes outside the viewport and I can't see what I'm typing. How to make it so that the ScrolledWindow automatically scrolls so that the caret in the TextView is always in visible?

View 5 Replies


Debian Programming :: Replace Certain Text In A File With Person Username Automatically?

Mar 16, 2014

Is there any way to use sed to replace certain text in a file with the persons username automatically? Right now i'm using
Code: Select allsed -i.bak s/STRING_TO_REPLACE/STRING_TO_REPLACE_IT/g

I would like it to automatically inject the persons usrname in the replacement string. Is this possible? I've been looking on line at various sed tutorials and I cant quite find what i'm looking for. I also didn't really see anything in the forums search function.Essentially i'm trying to take this file URL...Android.rules and replace all instances of username with the persons actual username automatically.

Code: Select allsed -i.bak s/username/$USER/g 51_Android.rules

View 0 Replies View Related

Programming :: Create PyGTK Gnome Screensaver?

Dec 15, 2010

I have created a PyGTK app (a binary clock) that I would like to turn into a screensaver. I added the .desktop file to /usr/share/applications/screensavers/ but all I get when I select it is a black screen. On the GnomeScreensaver FAQ (here) it says to use a gsthemewindow as the toplevel window, but the libraries given are in C. Is there any way to:Import this C library to get access to this toplevel window, Convert this GTK+ C library to PyGTK, or use a pygtk app as a screensaver in some other way?

View 3 Replies View Related

Debian Programming :: Implementing PyGtk For Python 3.3 In Wheezy

Sep 12, 2013

I run Wheezy Xfce 64-bit. I went through the Synaptic listings and added Python 3.3.2 and Tkinter for it, and that works fine; but for some reason PyGtk is available only for Python 2.7, not for Python 3.3, unless I'm just using the wrong way to try to find it. Is there a PyGtk available for Python 3.3 in Wheezy, and, if so, how do I install it and then import it once it's installed?

View 1 Replies View Related

Programming :: PyGTK: Can't Seem To Launch Program - Gobject.spawn_async Command

Jul 20, 2010

I need to launch a program, throw up a pulsing status bar and then close it when the program quits. I cannot seem to launch the program (a bash script):


This is where I'm getting my information: [URL]...

View 1 Replies View Related

Programming :: PyGTK: Send Output From A File Descriptor To A Textview?

Jul 22, 2010

Within PyGTK I'm using gobject.spawn_async to launch a bash script. I would like the output of that bash script to be displayed within my application. I have a textview set up to receive the text ...

Here are the commands that launch the program:

def run_command(command):
global keep_pulsing
(cpid, cstdin, cstdout, cstderr) = gobject.spawn_async(command,flags=gobject.SPAWN_DO_NOT_REAP_CHILD|gobject.SPAWN_STDERR_TO_DEV_NULL,standard_code....

Here are the two callback functions. But like I say ... I have no idea how to get that data from the 'cstdout' file descriptor into a textbuffer.

textview = wTree.get_widget('textview1')
def update_textview_callback(fd, condition):
global keep_pulsing
if keep_pulsing:

View 3 Replies View Related

OpenSUSE :: Scrolling In Text Field In Chromium?

Dec 14, 2010

I'm using Chromium 10 from the build service and just installed the upgrade to version 10. Now there seems to be an issue with scrolling. When i go to reply to an email in gmail there is something weird when i try to scroll. The scrollbar will move like i am scrolling but nothing actually in the text area moves

View 9 Replies View Related

OpenSUSE Install :: Get Scrolling Text Over The Bootsplas

Apr 19, 2010

It takes about 25 seconds for my Grub to load, about 10-15 seconds of a black screen with flashing cursor before the first (Grub version 1.5 etc) message, then another ten seconds or so with the message "grub loading please wait" (from memory) before the menu appears. Is that normal for a system with three HDs and three different OS (SUSE 11.2 and 11,1, Ubuntu 10.04)? Maybe it is, but it would be nice to shave off a few seconds as Grub now takes longer than booting the OS... Also, when I set the resolution in YaST2 of the Bootloader to my maximum of 1920x1200 (24bit), I get scrolling text over the bootsplash which I didn't get when the resolution was set to the previous value of 1600x1200 (8bit).

View 9 Replies View Related

Ubuntu :: Text Corruption When Scrolling - Natty 64-bit

Jul 8, 2011

Whenever I have an open OS-generated window (Software Center, Settings etc), the text will be corrupted if the window is scrolled. This can be restored by highlighting the text - and sometimes it will self-restore given time, but the corruption will reappear if the text is scrolled again.

The behaviour does not happen in program-generated windows, such as Firefox.

Dell 1340 Studio XPS, NVidea GT310 Hybrid SLI graphics.

View 1 Replies View Related

Ubuntu :: Scrolling Down Any Page Results In Overlapping Of Text

Aug 12, 2010

Enabling visual effects to either of normal/extra result in a serious problem-scrolling down any page results in overlapping of text, which is corrected only when i minimize and maximize the window.

View 4 Replies View Related

Ubuntu Installation :: Scrolling Text When Try To Boot Upgrade?

Jul 2, 2011

Toshiba Tecra. I'd like to upgrade from 9.01 to 11.04 but soon as I select 'Install Ubuntu' on the DVD I just get a screen of scrolling text files rolling by continuously. (I tried installing Kubuntu and Xubuntu and get the same thing)

View 3 Replies View Related

Fedora :: Scrolling Text During Boot Process Instead Of 'loading Bar'?

Jun 4, 2009

This doesnt really bother me at all, Im more curious than anything but- When I first installed fedora 9, during startup there was a bootsplash during the boot process. When the kernal was updated, the bootsplash was replaced with scrolling text (I have done several kernal updates, it was after the first one the scrolling text happened). Is there a way of reverting back to the bootsplash or is it more trouble than what its worth?

View 5 Replies View Related

General :: Replace The Scrolling Text During Boot-up With A Splash Image?

Mar 10, 2011

I need some help in determining how to have a color splash image display in place of the Linux scrolling-text during the boot-up process on an embedded Linux device. The kernel used is a stripped-down version of Linux (kernel 2.6.29), which has been custom configured. I am using syslinux as the bootloader. I was told that Plymouth might be the way to go with this, but I'm not sure.

View 7 Replies View Related

Ubuntu / Apple :: Reverse Scrolling And Inertial Scrolling?

Dec 1, 2010

I've just recently put Ubuntu on my 2010 Macbook Pro 13 inch, and all seems to be running more or less alright.One thing i miss from OS X is the ability to reverse the scrolling direction, also inertial scrolling.Is there any way to implement this in Ubuntu?Also, i have already installed the Mactel trackpad drivers.

View 2 Replies View Related

Programming :: Horizontal Scrolling In A JTable

Mar 10, 2011

I am creating an application in java that uses a jTable for showing some data. There are multiple columns in that table, an I do not want to show them all at once, so the user slides the horizontal scroll for viewing the remaining columns.

View 3 Replies View Related

Programming :: Scrolling Clears All Previous Data?

Jul 21, 2011

how can i prevent erase of screen data while scrolling. When i use the ANSI cursor movement commands(27[PnS , 27[PnT etc) say for scroll down the top lines get erased. i.e. if i scroll up after scroll down, i am unable to view top lines again.

View 6 Replies View Related

Programming :: HTML With Media Players Scrolling Over Things?

Jan 17, 2010

I have everything working in terms of the video and audio both play. However the audio player I have will scroll over the banner when I scroll up. also will do this when Flowplayer is active (playing or waiting to play a video) and a slide out menu hides behind this player as well.

View 2 Replies View Related

Programming :: Bash Text To Variable Accessing Individual Text Lines?

May 2, 2010

i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline


variable=$(cat file.txt)

The problem is i can only access the items/lines using:


for line in $variable
echo $line
# Other commands

how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the, but echoing prints line by line...o_0

View 11 Replies View Related

Programming :: Adding Lines Of Text To Beginning Of Text File

Jan 19, 2009

I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.

View 2 Replies View Related

Programming :: Delete Line Of Text From Text File Via Shell?

Jan 13, 2010

I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.

View 3 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text that on click the text view content should save as a txt file..

View 8 Replies View Related

Programming :: Formatting Fields And Text Being Displayed From Text File?

Feb 9, 2011

I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:



User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!


So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.

The desired output should look like this:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!


Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.

View 15 Replies View Related

Programming :: Sed To Output Block Of Text If Specified Text Is Matched?

Feb 13, 2010

I am trying to find sed command combination to print out the "start command" line, the id line and all lines between "details" and "stop command" only if "error" exists. Here's the original output (test.txt):

start command
id 1


View 3 Replies View Related

Programming :: Add Text Before Line Number In Text File?

May 3, 2010

a sed command to add a text before line number in text file? I have text file with 500 lines, and i want to add 3 more lines with text after line 300, OR before line 302, isn't no problem.

View 16 Replies View Related

Software :: Automatically Generate Text Files ?

Sep 17, 2010

I have a personal server that is password protected. I convert my movies, and make it so that I can watch them through a browser when I want to. I have quite a few movies. They are sorted into different directories. In each directory there is a WebM folder that contains the video file.

Here is what I want to do:Scan all of the directories and subdirectories in /var/www/ for files with extension of webm.

When a file is found, go to the parent directory and create an html file with the same name as the video, only with an html extension instead of webm.

Automatically enter the following html code into the file with the file name matching the file that was found.


Is it possible to do this with a script? Is there a GUI program that can do this? I don't mind running the script every time after I convert a movie, but if it could monitor the folders that would be nice.

View 11 Replies View Related

General :: Automatically Saving Text Files In DOS Format?

Oct 5, 2010

I usually work with plain text files, and when moving them across platforms, the differing format creates problems. I want that whenever I save a file with extension *.txt, it be saved as DOS format, and all other extensions or without get saved as Unix format.

View 2 Replies View Related

Ubuntu :: Text File Snot Opening Automatically With Gedit?

Apr 16, 2011

I have text files (.txt) to open with gedit but every time I try to open a text file it says:

Do you want to run "Installed programs", or display its contents?

And if I press Display it will open. How do I make it open automatically?

View 3 Replies View Related

Software :: Firefox - Text Boxes Automatically Highlighting Letters

Jul 11, 2010

I'm having a strange problem with Firefox. I like to tab through text boxes rather than clicking on each one. Problem is, I don't really know if it has anything to do with the tabbing honestly, but I'll type in the box I'll get one letter than it will highlight it all on its own and then obviously get replaced with the next letter I type. I can type one letter, press the forward arrow and type another letter then it automatically highlights the 2 letters, etc etc. I'm really not even sure how to stop it, I try clicking in the box and they doesn't seem to do anything. I'm running Ubuntu 10.04 with firefox 3.6.6.

View 2 Replies View Related

Ubuntu :: Make Boot Into Text Mode Directly And Login Automatically?

Oct 29, 2010

Ubuntu, and I sure know a little about Shell language. But now I need make my ubuntu boot into text mode directly and login automatically, without entering username/password by manual? I had make ubuntu boot into text mgrub fileRUB_CMDLINE_LINUX_DEFAULT="quiet splash text" , but I don't kown how to make system auto login. I'd like ubuntu login with administrator privilege then run some application automatically.

View 5 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved