python - How to make scale on Tkinter start in certain place? -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 1 उत्तर

    मैं टंकिनर और मैं का उपयोग कर रहा हूँ 0-200 से स्थापित पैमाने पर है, लेकिन मैं चाहता हूं कि जब मैं स्लाइडर के लिए 100 (आधे रास्ते पर गर्त पर) सेट करना चाहता हूं, तो 0 नहीं होगा। क्या यह उनके लिए एक तरीका है?

    धन्यवाद

    आप मूल्य का उपयोग करने के लिए विधि का उपयोग कर सकते हैं जो भी मान

    नीचे प्रदर्शित करने के लिए एक सरल स्क्रिप्ट है: <पूर्व> से tkinter आयात करें, स्केल रूट = Tk () w = स्केल (रूट, से_ = 0, से = 200) W.pack () w.set (100) # प्रारंभिक मान को 100 रूट पर सेट करें। मेनलोूप ()

    उदाहरण:

     यहां छवि विवरण दर्ज करें

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

Installing croogo for cakephp -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -