[yast-commit] [yast/yast-python-bindings] 144f83: Example code ported from the ruby bindings (#7)
Branch: refs/heads/master Home: https://github.com/yast/yast-python-bindings Commit: 144f8329ffa4e36df69b24e45edc4f253b080daf https://github.com/yast/yast-python-bindings/commit/144f8329ffa4e36df69b24e4... Author: David Mulder <davidmmulder@gmail.com> Date: 2017-11-27 (Mon, 27 Nov 2017) Changed paths: A examples/Alignment1.py A examples/AutoShortcut1.py A examples/AutoShortcut2.py A examples/BackgroundPixmap.py A examples/BarGraph1.py A examples/BarGraph2.py A examples/BarGraph3.py A examples/Beep.py A examples/BusyIndicator.py A examples/ButtonBox1.py A examples/ButtonBox2.py A examples/ButtonBox3-relaxed.py A examples/CheckBox1.py A examples/CheckBox2.py A examples/CheckBox3.py A examples/CheckBox4.py A examples/CheckBoxFrame1.py A examples/CheckBoxFrame2.py A examples/CheckBoxFrame3.py A examples/CheckBoxFrame4.py A examples/ComboBox-empty.py A examples/ComboBox-icons.py A examples/ComboBox-replace-items1.py A examples/ComboBox-set-empty.py A examples/ComboBox-setInputMaxLength.py A examples/ComboBox1.py A examples/ComboBox2.py A examples/ComboBox3.py A examples/ComboBox4.py A examples/ComboBox5.py A examples/ContextMenu.py A examples/DateField1.py A examples/Decorated.py A examples/DefaultButtons1.py A examples/DefaultButtons2.py A examples/DefaultButtons3.py A examples/DefaultSizeDialogs.py A examples/DownloadProgress1.py A examples/DownloadProgress2.py A examples/DumbTab1.py A examples/DumbTab2.py A examples/DumbTab3.py A examples/Enabling1.py A examples/Enabling2.py A examples/Enabling3.py A examples/Events.py A examples/FKeys.py A examples/FakeUserInput1.py A examples/FileSelection.py A examples/FileSelection2.py A examples/Frame1.py A examples/Frame2.py A examples/GetDisplayInfo.py A examples/Glyphs.py A examples/Graph1.py A examples/Graph2.py A examples/HBox1.py A examples/HCenter1.py A examples/HCenter2.py A examples/HCenter3.py A examples/HSquash1.py A examples/HStretch1.py A examples/Heading1.py A examples/Heading2.py A examples/Heading3.py A examples/HelloWorld.py A examples/HelpText.py A examples/IconButton1.py A examples/Image-animated.py A examples/Image-scaled.py A examples/Image1.py A examples/InfoColor.py A examples/InputField-layout.py A examples/InputField-setInputMaxLength.py A examples/InputField1.py A examples/InputField2.py A examples/InputField3.py A examples/InputField4.py A examples/InputField5.py A examples/InputField6.py A examples/IntField1.py A examples/IntField2.py A examples/IntField3.py A examples/InternalError.py A examples/Label1.py A examples/Label1_cs.py A examples/Label1_de.py A examples/Label1_ja.py A examples/Label2.py A examples/Label2_ml.py A examples/Label3.py A examples/Label4.py A examples/Layout-Buttons-Equal-Even-Spaced1.py A examples/Layout-Buttons-Equal-Even-Spaced2.py A examples/Layout-Buttons-Equal-Growing.py A examples/Layout-Fixed.py A examples/Layout-Mixed.py A examples/Layout-Stretchable.py A examples/Layout-Weights1.py A examples/Layout-Weights2.py A examples/LogView1.py A examples/LogView2.py A examples/MainDialog-popup.py A examples/MarginBox1.py A examples/MarginBox2.py A examples/Margins-without-MarginBox.py A examples/MenuButton1.py A examples/MenuButton2.py A examples/MinHeight1.py A examples/MinSize1.py A examples/MinWidth1.py A examples/MultiLineEdit-setInputMaxLength.py A examples/MultiLineEdit1.py A examples/MultiLineEdit2.py A examples/MultiLineEdit3.py A examples/MultiLineEdit4.py A examples/MultiProgressMeter1.py A examples/MultiProgressMeter2.py A examples/MultiSelectionBox-CurrentItem.py A examples/MultiSelectionBox-replace-items1.py A examples/MultiSelectionBox-replace-items2.py A examples/MultiSelectionBox1.py A examples/MultiSelectionBox2.py A examples/MultiSelectionBox3.py A examples/MultiSelectionBox4.py A examples/MultiSelectionBox5.py A examples/NCursesSlideShowDemo.py A examples/PackageSelector-10.1-stable.py A examples/PackageSelector-10.2.py A examples/PackageSelector-YOU.py A examples/PackageSelector-empty.py A examples/PackageSelector-multi-src.py A examples/PackageSelector-stable.py A examples/PackageSelector-update.py A examples/PackageSelector.py A examples/PartitionSplitter1.py A examples/PartitionSplitter2.py A examples/Password1.py A examples/Password2.py A examples/PatternSelector-empty.py A examples/PatternSelector-solo.py A examples/PatternSelector-wizard-with-packages.py A examples/PatternSelector-wizard.py A examples/PkgSpecial.py A examples/PollInput.py A examples/PollInput1.py A examples/PopupStressTest.py A examples/ProgressBar1.py A examples/ProgressBar2.py A examples/PushButton1.py A examples/PushButton2.py A examples/Puzzle.py A examples/README A examples/RadioButton1.py A examples/RadioButton2.py A examples/ReallyAbortPopup.py A examples/RelNotesButton.py A examples/ReplacePoint1.py A examples/RichText-hyperlinks.py A examples/RichText-license.py A examples/RichText1.py A examples/RichText1_cs.py A examples/RichText2.py A examples/RichText3.py A examples/RichText4.py A examples/RichText5.py A examples/RichText6.py A examples/Scroller.py A examples/SelectionBox-icons.py A examples/SelectionBox-replace-items1.py A examples/SelectionBox-replace-items2.py A examples/SelectionBox1.py A examples/SelectionBox2.py A examples/SelectionBox3.py A examples/SelectionBox4.py A examples/SelectionBox5.py A examples/SetLanguage.py A examples/ShortcutCheckPostponed.py A examples/ShortcutConflict1.py A examples/ShortcutConflict2.py A examples/ShortcutConflict3.py A examples/ShortcutConflict4.py A examples/ShortcutConflict5.py A examples/ShortcutConflict6.py A examples/SimplePatchSelector-empty.py A examples/SimplePatchSelector-stable.py A examples/SlideShowDemo.py A examples/SlideShowDemo2.py A examples/Slider1.py A examples/Slider2.py A examples/SmallDecorations.py A examples/Spacing1.py A examples/SpecialWidget.py A examples/Table-icons.py A examples/Table-sorting.py A examples/Table1.py A examples/Table1_utf8.py A examples/Table2.py A examples/Table3.py A examples/Table4.py A examples/Table5.py A examples/Table6-multiSel.py A examples/Table7-multiSel.py A examples/Table8-multiSel.py A examples/TextEntry-layout.py A examples/TextMode.py A examples/TimeField.py A examples/TimeoutUserInput.py A examples/TimezoneSelector.py A examples/TooBig.py A examples/Tree-Checkbox.py A examples/Tree-Checkbox2.py A examples/Tree-Checkbox3.py A examples/Tree-Checkbox4.py A examples/Tree-icons.py A examples/Tree-recursive-large.py A examples/Tree-replace-items.py A examples/Tree1.py A examples/Tree2.py A examples/Tree3.py A examples/Tree4.py A examples/UserInput.py A examples/VBox1.py A examples/WaitForEvent.py A examples/Weight1.py A examples/Weight2.py A examples/WidgetExists.py A examples/WindowID.py A examples/Wizard-SetDesktopTitle.py A examples/Wizard-popup.py A examples/Wizard1.py A examples/Wizard2.py A examples/Wizard3.py A examples/Wizard4.py A examples/graph1.gv A examples/graph2.gv A examples/graph3.gv A examples/ruby-convert-helper.py A examples/win_resizer.py A examples/win_resizer2.py M src/Makefile.am A src/y2log.h A src/y2log.i M src/yast-core.i M src/yast.cpp M src/yast.h M src/yast.py A src/ycpbuiltins.py Log Message: ----------- Example code ported from the ruby bindings (#7) * Wrap the y2 message functions * Fake Wizard term object with YCPWizard Currently we need to use YCPWizard to create the Wizard Term object This avoids a name space clash with the Wizard module. Is there a better solution ? * handle Opt in python * Handle Id so it can take paramaters other than strings Additionally keep the old functionality where a string paramater is converted to a symbol (but allow this behaviour to be overridden) * use y2_logger instead of y2debug, y2milestone, y2error etc. * Support for Term (to allow it to be constucted with native python types) * reorder metafuncs alphabetiaclly (for easy search) * Fix core when None is passed to some YCP functions * Add ycpbuiltins module for ycp like Builtins functionality * Add ruby examples ported to python * Call into the internal y2 message functions for debug * adjust builtins.y2log* stuff to use y2_logger
participants (1)
-
GitHub