GtkDialog - tips

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

gtkdialog vte fixes

#1501 Post by wiak »

Fixes for gtkdialog vte functionality discussed in last few posts of thread:

http://murga-linux.com/puppy/viewtopic. ... 79#1060379

wiak

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

force widget to left

#1502 Post by don570 »

Posted: Tue 28 Apr 2020, 06:00 Post subject: Hbox alignment


Hey, does someone know how to align a a hbox on the left and not at the right of a window

best way is to put an empty text widget on right side to force another widget to left

In this script --> text widget is forced to left of window
Attachments
script-color.gz
fake extension
(2.11 KiB) Downloaded 126 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#1503 Post by BarryK »

Hi guys,
I received feedback from a Linux Mint user, running my EasyDD script, with gtkdialog installed.

EasyDD is for writing an OS image file to a drive, usually a USB-stick. The GUI allows drag-and-drop off the image file.

However, in Linux Mint, Cinnamon, running the Nemo file manager, drag-and-drop preppends "file://" and appends what looks like a utf8 character "000A". This what we see in the box, see attached.

Does anyone know if gtkdialog 'entry' tag can be configured not to show that preppended and appended stuff?
Attachments
nemo-drag-drop-gtkdialog.png
(4.75 KiB) Downloaded 36 times
[url]https://bkhome.org/news/[/url]

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#1504 Post by MochiMoppel »

BarryK wrote:Does anyone know if gtkdialog 'entry' tag can be configured not to show that preppended and appended stuff?
You can avoid the "appended stuff", a line feed character, by using the tag attribute truncate-multiline="true". This restricts input to a single line. By default entry widgets accept multiline input (usually achieved by pasting, hardly possible by keyboard input), resulting in those hex 0A "box" characters.

As for the prepended stuff you could use some input verification code if you want to remove the prepended "file://". Maybe this can help.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#1505 Post by BarryK »

MochiMoppel wrote:
BarryK wrote:Does anyone know if gtkdialog 'entry' tag can be configured not to show that preppended and appended stuff?
You can avoid the "appended stuff", a line feed character, by using the tag attribute truncate-multiline="true". This restricts input to a single line. By default entry widgets accept multiline input (usually achieved by pasting, hardly possible by keyboard input), resulting in those hex 0A "box" characters.

As for the prepended stuff you could use some input verification code if you want to remove the prepended "file://". Maybe this can help.
Thanks for that! I have fixed EasyDD:

https://bkhome.org/news/202006/easydd-g ... -mint.html
[url]https://bkhome.org/news/[/url]

Post Reply