Jump to content

Recommended Posts

Hi All,

 

I facing Issue in three widgets

1) Change the font of Inputs Dialogue in TK (e.g CAMBRIA , 14)

2) How to assign the values of a dynamically created Entry Box to a list using TCL.

3) How to assign the procedure to the buttons in Dialogue. (OK , APPLY and CANCEL on the dialogue Box situated at the bottom) 

please help me to clarify these doubts.

Best Regards,

Dhairyasheel Desai

GUI_Issue_Entry.JPG

InputDialog.JPG

Share this post


Link to post
Share on other sites

Hi Dhairyasheel,

1. first create a font with the properties and then assign it to the label you create

font create myFont -family cambria -size 14

ttk::label .test.frame1.label1 -text "Hello" -font myFont -width 15

2. all entry boxes have a variable set using -textvariable which should be a namespace variable, this can be set dynamically and will be reflected accordingly. 

hwtk::entry frame_1.ent_1 -textvariable ::mynamespace::entry1variable

 

3. use -command followed by the function while creating the button:

hwtk::button frame_1.button_1 -text "test" -command {::test::Myprocedure}

 

Dhairyasheel likes this

Share this post


Link to post
Share on other sites
On 12/20/2018 at 7:28 PM, Jeffersondhv said:

 

Hi Livil,

Thanks for the Reply. It was very Helpful. :) 

1 ) My question was about font of INPUT DIALOG

font create myFont -family cambria -size 14

"set myanswer [hwtk::inputdialog -title "Material" -text "Enter Material Name" -font myFont".

2) About Assigning the Procedure to the Default Buttons on the Dialogue Box (OK , CANCEL, APPLY) Please refer to the Images attached.

Thanks in Advance 

Best Regards,

Dhairyasheel 

Tata Technologies

GUI.jpg

InputDialog1.JPG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...