fill in form
Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T
Re: fill in form
On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T GTK::Simple does work in Window, but I am at a loss for an example of a fill in form.
Re: fill in form
On 2020-05-11 17:14, ToddAndMargo via perl6-users wrote: On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T GTK::Simple does work in Window, but I am at a loss for an example of a fill in form. Found this: https://glade.gnome.org/ I have some reading to do! Says it works with Perl too. Five I presume. -T
Re: fill in form
Years ago I played around with qt and GTK::Simple. It works fine, but the installation process on Windows is poor, to say at least. It might be not better, but you could use the PowerShell to show a GUI and store something in a txt file you then parse. On Tue, 12 May 2020 at 10:22, ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2020-05-11 17:14, ToddAndMargo via perl6-users wrote: > > On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> I want to create a fill in form in Windows: city, > >> state, etc., you fill in the data. > >> > >> Is there some library out there for that? > >> > >> Any words of wisdom? > >> > >> Many thanks, > >> -T > > > > > > GTK::Simple does work in Window, but I am at a loss > > for an example of a fill in form. > > Found this: > > https://glade.gnome.org/ > > I have some reading to do! > > Says it works with Perl too. Five I presume. > > -T >
Re: fill in form
Hi Todd, normally I'd expect you want to create a grid with labels on the left and text inputs on the right. the examples/ folder in the GTK::Simple distribution (or the source on github) has an example of the Grid class, which is very powerful. The grid is possibly more complicated than you need it to be; instead you can probably have one VBox that contains one HBox for every label + input field. One benefit that the Grid will give you is that you can much more easily line up all the fill-in text inputs, whereas with a VBox of HBoxes it may just make every text input as wide as possible so it (almost) touches the end of the label, so different words ("city" vs "first name") could result in different-sized text inputs. hope that helps - Timo On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: > Hi All, > > I want to create a fill in form in Windows: city, > state, etc., you fill in the data. > > Is there some library out there for that? > > Any words of wisdom? > > Many thanks, > -T
Re: fill in form
> On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: >> Hi All, >> >> I want to create a fill in form in Windows: city, >> state, etc., you fill in the data. >> >> Is there some library out there for that? >> >> Any words of wisdom? >> >> Many thanks, >> -T On 2020-05-12 08:18, Timo Paulssen wrote: Hi Todd, normally I'd expect you want to create a grid with labels on the left and text inputs on the right. the examples/ folder in the GTK::Simple distribution (or the source on github) has an example of the Grid class, which is very powerful. The grid is possibly more complicated than you need it to be; instead you can probably have one VBox that contains one HBox for every label + input field. One benefit that the Grid will give you is that you can much more easily line up all the fill-in text inputs, whereas with a VBox of HBoxes it may just make every text input as wide as possible so it (almost) touches the end of the label, so different words ("city" vs "first name") could result in different-sized text inputs. hope that helps - Timo Hi Timo, You mean this one? https://github.com/raku-community-modules/gtk-simple/blob/master/examples/03-grid.pl6 https://ibb.co/hgKHgW4 I do not see the utility of what I am after. :'( -T
Re: fill in form
Is this not anything like what you're after? https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.w3.org%2FTR%2F2016%2FCR-css-grid-1-20160929%2Fimages%2Fauto-placed-form.png&f=1&nofb=1 Kind Regards - Timo On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: > > On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> I want to create a fill in form in Windows: city, > >> state, etc., you fill in the data. > >> > >> Is there some library out there for that? > >> > >> Any words of wisdom? > >> > >> Many thanks, > >> -T > > > On 2020-05-12 08:18, Timo Paulssen wrote: >> Hi Todd, >> >> normally I'd expect you want to create a grid with labels on the left >> and text inputs on the right. >> >> the examples/ folder in the GTK::Simple distribution (or the source on >> github) has an example of the Grid class, which is very powerful. >> >> The grid is possibly more complicated than you need it to be; instead >> you can probably have one VBox that contains one HBox for every label + >> input field. >> >> One benefit that the Grid will give you is that you can much more easily >> line up all the fill-in text inputs, whereas with a VBox of HBoxes it >> may just make every text input as wide as possible so it (almost) >> touches the end of the label, so different words ("city" vs "first >> name") could result in different-sized text inputs. >> >> hope that helps >> - Timo >> > > > Hi Timo, > > You mean this one? > > https://github.com/raku-community-modules/gtk-simple/blob/master/examples/03-grid.pl6 > > > https://ibb.co/hgKHgW4 > > I do not see the utility of what I am after. > > :'( > > -T
Re: fill in form
> On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: >>> On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: >>>> Hi All, >>>> >>>> I want to create a fill in form in Windows: city, >>>> state, etc., you fill in the data. >>>> >>>> Is there some library out there for that? >>>> >>>> Any words of wisdom? >>>> >>>> Many thanks, >>>> -T >> >> >> On 2020-05-12 08:18, Timo Paulssen wrote: >>> Hi Todd, >>> >>> normally I'd expect you want to create a grid with labels on the left >>> and text inputs on the right. >>> >>> the examples/ folder in the GTK::Simple distribution (or the source on >>> github) has an example of the Grid class, which is very powerful. >>> >>> The grid is possibly more complicated than you need it to be; instead >>> you can probably have one VBox that contains one HBox for every label + >>> input field. >>> >>> One benefit that the Grid will give you is that you can much more easily >>> line up all the fill-in text inputs, whereas with a VBox of HBoxes it >>> may just make every text input as wide as possible so it (almost) >>> touches the end of the label, so different words ("city" vs "first >>> name") could result in different-sized text inputs. >>> >>> hope that helps >>> - Timo >>> >> >> >> Hi Timo, >> >> You mean this one? >> >> https://github.com/raku-community-modules/gtk-simple/blob/master/examples/03-grid.pl6 >> >> >> https://ibb.co/hgKHgW4 >> >> I do not see the utility of what I am after. >> >> :'( >> >> -T On 2020-05-13 05:26, Timo Paulssen wrote: Is this not anything like what you're after? https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.w3.org%2FTR%2F2016%2FCR-css-grid-1-20160929%2Fimages%2Fauto-placed-form.png&f=1&nofb=1 Kind Regards - Timo Yes!
Re: fill in form
On Wed, May 13, 2020 at 07:58:08AM -0700, Todd Chester via perl6-users wrote: > > On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: > >>> On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: > >>>> Hi All, > >>>> > >>>> I want to create a fill in form in Windows: city, > >>>> state, etc., you fill in the data. > >>>> > >>>> Is there some library out there for that? > >>>> > >>>> Any words of wisdom? > >>>> > >>>> Many thanks, > >>>> -T > >> > >> > >> On 2020-05-12 08:18, Timo Paulssen wrote: > >>> Hi Todd, > >>> > >>> normally I'd expect you want to create a grid with labels on the left > >>> and text inputs on the right. > >>> > >>> the examples/ folder in the GTK::Simple distribution (or the source on > >>> github) has an example of the Grid class, which is very powerful. > >>> > >>> The grid is possibly more complicated than you need it to be; instead > >>> you can probably have one VBox that contains one HBox for every label + > >>> input field. > >>> > >>> One benefit that the Grid will give you is that you can much more easily > >>> line up all the fill-in text inputs, whereas with a VBox of HBoxes it > >>> may just make every text input as wide as possible so it (almost) > >>> touches the end of the label, so different words ("city" vs "first > >>> name") could result in different-sized text inputs. > >>> > >>> hope that helps > >>> - Timo > >>> > >> > >> > >> Hi Timo, > >> > >> You mean this one? > >> > >> https://github.com/raku-community-modules/gtk-simple/blob/master/examples/03-grid.pl6 > >> > >> > >> https://ibb.co/hgKHgW4 > >> > >> I do not see the utility of what I am after. > >> > >> :'( > >> > >> -T > > On 2020-05-13 05:26, Timo Paulssen wrote: > > Is this not anything like what you're after? > > > > https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.w3.org%2FTR%2F2016%2FCR-css-grid-1-20160929%2Fimages%2Fauto-placed-form.png&f=1&nofb=1 > > > > Kind Regards > > - Timo > > > > Yes! So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the 03-grid.p6 example as a base on how to do this with Raku and GTK+. G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@debian.org p...@storpool.com PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 signature.asc Description: PGP signature
Re: fill in form
On 2020-05-13 14:05, Peter Pentchev wrote: On Wed, May 13, 2020 at 07:58:08AM -0700, Todd Chester via perl6-users wrote: On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T On 2020-05-12 08:18, Timo Paulssen wrote: Hi Todd, normally I'd expect you want to create a grid with labels on the left and text inputs on the right. the examples/ folder in the GTK::Simple distribution (or the source on github) has an example of the Grid class, which is very powerful. The grid is possibly more complicated than you need it to be; instead you can probably have one VBox that contains one HBox for every label + input field. One benefit that the Grid will give you is that you can much more easily line up all the fill-in text inputs, whereas with a VBox of HBoxes it may just make every text input as wide as possible so it (almost) touches the end of the label, so different words ("city" vs "first name") could result in different-sized text inputs. hope that helps - Timo Hi Timo, You mean this one? https://github.com/raku-community-modules/gtk-simple/blob/master/examples/03-grid.pl6 https://ibb.co/hgKHgW4 I do not see the utility of what I am after. :'( -T On 2020-05-13 05:26, Timo Paulssen wrote: Is this not anything like what you're after? https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.w3.org%2FTR%2F2016%2FCR-css-grid-1-20160929%2Fimages%2Fauto-placed-form.png&f=1&nofb=1 Kind Regards - Timo Yes! So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the 03-grid.p6 example as a base on how to do this with Raku and GTK+. G'luck, Peter You would not happen to have a guide for the complete idiot? Maybe an example too? 03-grid.p6 does not show how to extract the information. Can I do all this with glade? https://glade.gnome.org/ It has a nice tutorial.
Re: fill in form
On 2020-05-13 15:29, ToddAndMargo via perl6-users wrote: 03-grid.p6 does not show how to extract the information. But he does make this comment: Once again we're free to directly define and assign a variable to hold the widget for later on. Which totally blows my mind.
Re: fill in form
On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the 03-grid.p6 example as a base on how to do this with Raku and GTK+. Actually, he showed me the end result, not how he did it. I really need to know how he did it
Re: fill in form
On Fri, May 15, 2020 at 02:51:10PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-13 14:05, Peter Pentchev wrote: > > So... I believe Timo gave you that as an example how to use a grid to > > position the various controls (buttons, text labels, input fields). > > You start there, you figure out what text labels, what input fields, > > what buttons you need, and then you use the 03-grid.p6 example as a base > > on how to do this with Raku and GTK+. > > Actually, he showed me the end result, not how he did it. > I really need to know how he did it Um, what he showed you was not in any way related to GTK+; it was an example of using grid layout in Cascading Style Sheets (CSS), a widely-used extension to HTML for making webpages. His point was to illustrate the *idea* of aligning buttons, text labels, and text input boxes to a grid. So you posted a screenshot of running the 03-grid.p6 example. It showed a couple of buttons and a text label, and it aligned them in the way described in the source code. Play around with it a bit, move the buttons and the text labels around, create another element or two, look at the other examples, maybe the one that says "Hello World", maybe the one that is called "text", see what other types of GTK+ things you can put onto the grid. G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@debian.org p...@storpool.com PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 signature.asc Description: PGP signature
Re: fill in form
On 2020-05-15 15:23, Peter Pentchev wrote: On Fri, May 15, 2020 at 02:51:10PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the 03-grid.p6 example as a base on how to do this with Raku and GTK+. Actually, he showed me the end result, not how he did it. I really need to know how he did it Um, what he showed you was not in any way related to GTK+; it was an example of using grid layout in Cascading Style Sheets (CSS), a widely-used extension to HTML for making webpages. His point was to illustrate the *idea* of aligning buttons, text labels, and text input boxes to a grid. So you posted a screenshot of running the 03-grid.p6 example. It showed a couple of buttons and a text label, and it aligned them in the way described in the source code. Play around with it a bit, move the buttons and the text labels around, create another element or two, look at the other examples, maybe the one that says "Hello World", maybe the one that is called "text", see what other types of GTK+ things you can put onto the grid. G'luck, Peter With the exception that I do not know how to get the data back out of the pop up. The example does not even have a `okay` and `cancel` button
Re: fill in form
On Fri, May 15, 2020 at 04:42:44PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-15 15:23, Peter Pentchev wrote: > > On Fri, May 15, 2020 at 02:51:10PM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-05-13 14:05, Peter Pentchev wrote: > > > > So... I believe Timo gave you that as an example how to use a grid to > > > > position the various controls (buttons, text labels, input fields). > > > > You start there, you figure out what text labels, what input fields, > > > > what buttons you need, and then you use the 03-grid.p6 example as a base > > > > on how to do this with Raku and GTK+. > > > > > > Actually, he showed me the end result, not how he did it. > > > I really need to know how he did it > > > > Um, what he showed you was not in any way related to GTK+; it was > > an example of using grid layout in Cascading Style Sheets (CSS), > > a widely-used extension to HTML for making webpages. His point was > > to illustrate the *idea* of aligning buttons, text labels, and text > > input boxes to a grid. > > > > So you posted a screenshot of running the 03-grid.p6 example. > > It showed a couple of buttons and a text label, and it aligned them in > > the way described in the source code. Play around with it a bit, move > > the buttons and the text labels around, create another element or two, > > look at the other examples, maybe the one that says "Hello World", maybe > > the one that is called "text", see what other types of GTK+ things you > > can put onto the grid. > > With the exception that I do not know how to get the > data back out of the pop up. The example does not even > have a `okay` and `cancel` button ...so, as I said, you look at the other examples. This one is merely an example of aligning things, not of making things do something. That's what the other examples (like the ones that, I don't know, maybe the ones that I mentioned?). G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@debian.org p...@storpool.com PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 signature.asc Description: PGP signature