Menu Framework, Double-Click + Embedded-Image

Moderator: Forum moderators

Post Reply
User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Menu Framework, Double-Click + Embedded-Image

Post by glene77is »

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M.C.I. the Menu Framework MAIN Version
#! Full Version of Menu Framework series is here:
#! viewtopic.php?p=91327&hilit=embedded+image#p91327

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MCI Menu Framework First Version is pictured below :
Double-Click < button >
Embeded-Graphics < button >
Written in BASH + GTK code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



[/size]
:thumbup2: Edited 231220 :thumbup2:
Studies in : Double-Click Button + Embedded-Graphics + BASH + GTK

Seminal idea for embedding graphics is from "june1 2012 Don White (don570)" (thanks)


======================================================

This is Linux Puppy Distro ....... This is Free Open Source ....... So Read the Code !

:roll:

:roll:

Check the script for "MCI" V.3.0 project
"MCI" is the good example , short version,

"MCI" is a Simple Example of Embedded Images and Double-Click Techniques
and intended to be the Model Presentation.
.......

:roll:
#! Sample Instruction Version of Menu Framework series is here:
#! MCI_v.3.3_Sample-Menu_Embedded-Graphics+Double-Click
#! viewtopic.php?p=91327&hilit=embedded+image#p91327

root_myapplications_MGR-proj-2503150-1496.zip
MGR series scripts
(509.4 KiB) Downloaded 1 time

==================================================

Last edited by glene77is on Sat Mar 15, 2025 7:29 pm, edited 46 times in total.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by glene77is »

About the Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script
IF there is any interest in the "MGR" script project,
THEN , I can strip this down to a much smaller presentation, and include a code dump <button> .

That smaller version will be titled "MCI" .

Last edited by glene77is on Thu Aug 01, 2024 3:44 pm, edited 2 times in total.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
wiak
Posts: 4310
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1295 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by wiak »

Looks fascinating, especially from a coder's point of view.

Is my understanding correct that you are using GTK+1? I think that might be a problem since most been using GTK+2 and moving towards newer GTK.

There may also be a problem in the amount of detail in the GUI - and working out what it is for. I commend you on the effort though. Your website also looks very interesting.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by glene77is »

to WIAK, :thumbup2:
Thanks for the comment. You are right, good insight.
I think you understand the importance of your notes.
*
Your website is very interesting and well presented.
I will spend some time reading what you have done.
*

You say you visited my "website", the electronic engineering site.
I have been interested in non-linear analog circuits since 1975. It is Part of my background.
In 2016 I finally had opportunity to explore Non-Resonant Non-Gausian Narrow-Pass-Band Audio Filters,
for use in my ham radio activities which are with morse code.
After development / reviews , I published two papers, recv'd 20,000 'reads' .
This very old man is happy about that.
*
About the project, regarding mixing BASH and GTK:
The biggest problem I have is that I think in terms of the abstract organization,
and do not always see the complexity, nor am I concerned with such.
I admit the first versions of "MGR" were patched together , over time,
while we employed with other production projects.
I do not present it as an ideal solution to a generalized "master menu" project ;
MGR is only presented for study of a BASH+GTK 'master menu'
with GTK Double-Click <button> and GTK Embedded-Images.
The "CTB" [ "Cold Tar Backup" ] is a more polished project, but still not perfectly 'finished'. Nothing ever is.

==================================================================
The next project is "MCI" and is a readable presentation ,
a "showcase" of the basic ideas in GUI and Embedded-Images
.
I suggest, that look at my next reply for "MCI" v. 3.
.

viewtopic.php?t=8908

Compatibility is important, as Ubuntu upgrades their distros frequently.
"Change and UpDate are the only constant rule".
...
To that end,
I run/test my projects in 22 Puppy-"WoofCE" distros,
#! Running Tests are done by way of a multi-boot-menu.lst.
Including, 32bit and 64bit, saveDATA/subdir and saveDATA.4fs formats.
[/color]
...
For example:
"iso_NoblePup32-24.04-240907"
"iso_BookwormPup32-23.11-B4_v12_K:6.1 _ 64__ 231210"
"iso-bionicpup64-8.0-uefi _______ K:4 __ 64_ 231219"
"iso_BionicPup32-19.03-K5.9 __ K:5.9___ 231209"
"iso-UpupTahr-6.0.6-k4.1.30-uefi_ K:4.1 ______ 190211"
"iso-BionicPup32-8.0+30_BionicBeaver_____ 220407"
"iso_ManticPup32-23.10+1 __ K:6.1 _______ 231209"
"iso-JammyPup32-22.04+8_JammyJellyfish___ 22123"
"iso-UPupFF+D-20.12+4_Focal-Fossa________ 201210"
"iso-KineticPup32-22.10+2________________ 230604"
"iso-Slacko-7.0_DpupS7_14.2________________ 220205"
"iso-Xenial-64_7.5_XL_______________________ 220401"
"iso-S15Pup-64_22.12+1-T__________________ 220922"
"iso-Quirky_April-7.0.1F-uefi________________ 200511"
"iso_devuanpup-9.7.0-chimaera_4.0_i386____ 211206"
"iso_LxPupSc-slacko-20.01+0-T_k:64_________ 200129"
"iso_slacko64_14.2_32-674-bit_compatible___ 220227"
...
I maintain separation between "DEV" and "TEST" and "PRODUCTION" versions, carefully,
with standard name tags. and DateTimeSeconds tag.
My saveDATA entities are on the Hard-Drive SDA, and copies are synched/updated into at least five others (SDB,SDC,SDD,et,al) daily.
This "backup" is process is written into my "TXN" re-format program , along with subdir and Date-Time-Stamps.
...
We have no GTK conflict "yet", on my little systems, between BASH code and GTK code.
But several projects by other contributors which we have downloaded from Murga have given problems,
WHICH I attribute to the authors using BASH and GTK together, ( mix and mingle style ).
AS IF these are the same language system ... which they are not !

Both languages (BASH and GTK) have their own interpreters,
and can work together only in specified ways.
I describe the inherent problem as BASH / GTK "InterAction" .
...
I have written this Double-Click + Embedded-Image <button> version , "MGR" and "MCI" trying not to mix the two languages.
For Example.
... WHEN GTK handles the maingui selection ,
..... THEN I use a GTK type function ( such as the "msg_DC_ReStart_window" ) to accomplish a limited GTK type task written in GTK dialect.
... WHEN GTK handles a mainGUI "Selection" or "<Action>",
...... THEN I use the GTK variable "EXIT" (<action> EXIT:guiS2F-ReStart</action>) to fall out and down to my if/fi[] BASH routines to do the non-GTK task.
....WHEN the BASH routines call BASH SubRoutines written in the top of the source, which the BASH interpreter can read and execute .
......THEN BASH sees BASH code and executes BASH code, ONLY !
...
I try to keep GTK interpreter reading/executing GTK code.
I try to keep BASH interpreter reading/executing BASH code.
...

(end)

Last edited by glene77is on Thu Feb 06, 2025 7:55 am, edited 12 times in total.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
wiak
Posts: 4310
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1295 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by wiak »

Yes, I miss electronics. I was brought up in that world, soldering since five years old, by my father who was an electrical and mechanical fitter and then in RAF signals core during WWIi. His Morse code speed was out of this world... a special super fast rhythm they called Baghdad Morse in signals core. Later he was strongly into ham radio, built most of his own rigs but also used old war surplus gear. I think the big very heavy receiver I had in my bedroom was CR100. As a wee kid he had me climbing trees and on top of our big old house roof helping put up long copper wire antennas. By eight maybe I was building reflex/regenerative two or three transistor radio receivers after years winding coils for crystal radios. My father became a TV repair man prior to later being chief inspector communication network for police force Lusaka, Zambia. I ended up doing degree in Electronics and worked in small design/development team producing medical ultrasound machines. Was big mix of analog and digital design work and later microprocessor assembly coding involved too. So for a long time I knew a lot about filter circuits, op amps, feedback, and related, often discrete designs since IC op amps for 10MHz and above tended to have overshoot artifacts that were difficult to filter out in practice and showed up as bright edges on ultrasound video (video processing being my part in the designs). I miss knowing all that stuff, but having moved into Internet protocol research and data comms teaching thereafter it has been forty years since Ive used any Kirchoff's Laws or worked out any op Amp feedback filter! I no longer have my design notes/semiconductor data books/and what once known like natural obvious knowledge is basically now emptied out of my brain. I feel stupid compared to back then, with only some later acquired Linux-related programming skills still slightly within my capabilities. Linux?...yes it is fine...Electronics?...that was wonderful and inspiring. Wish that was what I was still doing, but Electronics generally mass-produced cheap now, so vanished as a major pursuit for most anyway.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by glene77is »

UpGraded : "MCI" v.3 [/size][/b]
Menu Framework, Double-Click <button> and Embeded-Graphics <button>
Written in BASH + GTK code.

:thumbup2: "MCI" version: 3.3 ... Edited 230610 :thumbup2:

Project has been moved to : MCI_v.3.3_Sample-Menu_Embedded-Graphics+Double-Click
viewtopic.php?t=8908

==================================================================
"MCI" 3.3 is the "showcase"
of the basic ideas in GUI and Embedded-Images
I suggest, that you look at it.

viewtopic.php?t=8908

==================================================================


:thumbup2:
Thanks to Don White.
.......Seminal idea for embedding graphics is from "june1 2012 Don White (don570)" (thanks)
Thanks to WIAK and Rockedge

....... for thoughtful comments.


[/color]

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image Button in Bash+GTK Script

Post by glene77is »

wiak wrote: Wed Mar 29, 2023 9:57 pm

Looks fascinating, especially from a coder's point of view.

Is my understanding correct that you are using GTK+1? I think that might be a problem since most been using GTK+2 and moving towards newer GTK.

There may also be a problem in the amount of detail in the GUI - and working out what it is for. I commend you on the effort though. Your website also looks very interesting.

Thanks for the comments,
but think we have been one step ahead of you.
...
We "paged" out various groups of functions, in several MGR versions, in order to reduce apparent complexity.
We added some extra functions on these extra "pages", so the System Main Screen is less cluttered.
...
So, we wrote several total versions of MGR, v.5, v.6, v.7, v.8 ,
...> each with a specific Point-of-View guiding their development <....
..
We have 22 different / running installs of Puppy Linux, and test each version of MGR on each.
... in fact (not apparent) this is the reason behind the MGR (in the first place) ; ie, to "flip" between all 22 distros. .
Each Puppy Distro is tested :
(1) "AS-IS"
(2) "fresh out of the box"
(3) with the original author's BASH and GTK installation.
(4) We make NO MODs to the "author's original distribution".
......
... That is as experimentally un-biased as I can be ...
...
... What I observe is that
(1) BASH is 100% consistent / compatible ... Puppy Distro to next Puppy Distro.
(2) GTK is 99% backwards-compatible
..... several minor formatting errors, seem to be because of font size/shape diffs..
.....

(end)

Last edited by glene77is on Wed Jan 22, 2025 2:51 pm, edited 2 times in total.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
wiak
Posts: 4310
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1295 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image

Post by wiak »

Something gone wrong woth your above post color formatting. On my browser can hardly read the main light pink text Glen.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
glene77is
Posts: 64
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 52 times
Been thanked: 7 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image

Post by glene77is »

wiak wrote: Mon Dec 09, 2024 1:54 pm

Something gone wrong woth your above post color formatting. On my browser can hardly read the main light pink text Glen.

The Editor Program for this forum carries lots of code for colors, characters, tabling, size, etc, ...
... BUT, all of a sudden I have been told that I must use denuded editing controls. Ha!
...So, I changed the font colors to" bare-bottom" "denuded" "No Color" .
... :geek:
I can change, in a flash, but I still laugh at what appears to be the "best case" process chosen.
After more than four decades of mucking, interpreting, and fixing classic and legacy code,
I just walk on through it all.
Everybody sees their latest method as the greatest,
... and that includes me.
AS SOON AS the moderators get my attention and point-out the current methods,
THEN I can jump on the band wagen.
:thumbup:
But, I still laugh at it all. !
:thumbup2:

Last edited by glene77is on Thu Feb 06, 2025 7:58 am, edited 1 time in total.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3149 times
Been thanked: 2933 times
Contact:

Re: Menu Framework, Double-Click + Embedded-Image

Post by rockedge »

glene77is wrote: Wed Jan 22, 2025 3:07 pm
wiak wrote: Mon Dec 09, 2024 1:54 pm

Something gone wrong woth your above post color formatting. On my browser can hardly read the main light pink text Glen.

The Editor Program for this forum carries lots of code for colors, characters, tabling, size, etc, ...
... BUT, all of a sudden I was told that I must use denuded editing controls. Ha!
...So, I changed the font colors to" bare-bottom" "denuded" "No Color" .
... :geek:
I can change, in a flash, but I still laugh at what appears to be the "best case" process chosen.
After more than four decades of mucking, interpreting, and fixing classic and legacy code,
I just walk on through it all.
Everybody sees their latest method as the greatest,
... and that includes me.
AS SOON AS the moderators get my attention and point-out the current methods,
THEN I can jump on the band wagen.
:thumbup:
But, I still laugh at it all. !
:thumbup2:

I don't have a clue to what this is about.

Can you please explain to me the point of this post?

Sorry I just don't get it and I AM BUSY enough so enlighten me too what your attempting to convince me of.

What I do know is the text was impossible to read and then when no one explained why that is to me, I probably changed it because it looked stupid.

Post Reply

Return to “Utilities”