@@ -37,75 +37,75 @@ def create_widgets(context):
3737 layout .addView (button )
3838
3939 # Create TextView
40- textView = TextView (context )
41- textView .setText ('TextView created in Python' )
42- layout .addView (textView )
40+ text_view = TextView (context )
41+ text_view .setText ('TextView created in Python' )
42+ layout .addView (text_view )
4343
4444 # Create EditText
45- editText = EditText (context )
46- editText .setHint ('EditText created in Python' )
47- layout .addView (editText )
45+ edit_text = EditText (context )
46+ edit_text .setHint ('EditText created in Python' )
47+ layout .addView (edit_text )
4848
4949 # Create CheckBox
50- checkBox = CheckBox (context )
51- checkBox .setText ('CheckBox created in Python' )
52- layout .addView (checkBox )
50+ check_box = CheckBox (context )
51+ check_box .setText ('CheckBox created in Python' )
52+ layout .addView (check_box )
5353
5454 # Create RadioButton
55- radioButton = RadioButton (context )
56- radioButton .setText ('RadioButton created in Python' )
57- layout .addView (radioButton )
55+ radio_button = RadioButton (context )
56+ radio_button .setText ('RadioButton created in Python' )
57+ layout .addView (radio_button )
5858
5959 # Create ImageView
60- imageView = ImageView (context )
61- layout .addView (imageView )
60+ image_view = ImageView (context )
61+ layout .addView (image_view )
6262
6363 # Create ProgressBar
64- progressBar = ProgressBar (context )
65- layout .addView (progressBar )
64+ progress_bar = ProgressBar (context )
65+ layout .addView (progress_bar )
6666
6767 # Create Switch
6868 switch = Switch (context )
6969 switch .setText ('Switch created in Python' )
7070 layout .addView (switch )
7171
7272 # Create ToggleButton
73- toggleButton = ToggleButton (context )
74- toggleButton .setTextOn ('On' )
75- toggleButton .setTextOff ('Off' )
76- layout .addView (toggleButton )
73+ toggle_button = ToggleButton (context )
74+ toggle_button .setTextOn ('On' )
75+ toggle_button .setTextOff ('Off' )
76+ layout .addView (toggle_button )
7777
7878 # Create SeekBar
79- seekBar = SeekBar (context )
80- layout .addView (seekBar )
79+ seek_bar = SeekBar (context )
80+ layout .addView (seek_bar )
8181
8282 # Create CardView
83- cardView = CardView (context )
84- layout .addView (cardView )
83+ card_view = CardView (context )
84+ layout .addView (card_view )
8585
8686 # Create ViewPager
87- viewPager = ViewPager (context )
88- layout .addView (viewPager )
87+ view_pager = ViewPager (context )
88+ layout .addView (view_pager )
8989
9090 # Create DatePicker
91- datePicker = DatePicker (context )
92- layout .addView (datePicker )
91+ date_picker = DatePicker (context )
92+ layout .addView (date_picker )
9393
9494 # Create TimePicker
95- timePicker = TimePicker (context )
96- layout .addView (timePicker )
95+ time_picker = TimePicker (context )
96+ layout .addView (time_picker )
9797
9898 # Create Spinner
9999 spinner = Spinner (context )
100100 layout .addView (spinner )
101101
102102 # Create AutoCompleteTextView
103- autoCompleteTextView = AutoCompleteTextView (context )
104- layout .addView (autoCompleteTextView )
103+ auto_complete_text_view = AutoCompleteTextView (context )
104+ layout .addView (auto_complete_text_view )
105105
106106 # Create RatingBar
107- ratingBar = RatingBar (context )
108- layout .addView (ratingBar )
107+ rating_bar = RatingBar (context )
108+ layout .addView (rating_bar )
109109
110110 # Return layout
111111 return layout
0 commit comments