Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c3625934
Commit
c3625934
authored
Mar 27, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added forms_(de)activate_all_forms functions; minor lay-out fixes.
parent
19e349e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
18 deletions
+40
-18
Modules/flmodule.c
Modules/flmodule.c
+40
-18
No files found.
Modules/flmodule.c
View file @
c3625934
...
@@ -1918,6 +1918,26 @@ forms_make_form(dummy, args)
...
@@ -1918,6 +1918,26 @@ forms_make_form(dummy, args)
return
newformobject
(
form
);
return
newformobject
(
form
);
}
}
static
object
*
forms_activate_all_forms
(
f
,
args
)
object
*
f
;
object
*
args
;
{
fl_activate_all_forms
();
INCREF
(
None
);
return
None
;
}
static
object
*
forms_deactivate_all_forms
(
f
,
args
)
object
*
f
;
object
*
args
;
{
fl_deactivate_all_forms
();
INCREF
(
None
);
return
None
;
}
static
object
*
my_event_callback
=
NULL
;
static
object
*
my_event_callback
=
NULL
;
static
object
*
static
object
*
...
@@ -2247,8 +2267,8 @@ forms_tie(self, args)
...
@@ -2247,8 +2267,8 @@ forms_tie(self, args)
static
object
*
static
object
*
forms_show_message
(
f
,
args
)
forms_show_message
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
char
*
a
,
*
b
,
*
c
;
char
*
a
,
*
b
,
*
c
;
...
@@ -2262,8 +2282,8 @@ forms_show_message(f, args)
...
@@ -2262,8 +2282,8 @@ forms_show_message(f, args)
static
object
*
static
object
*
forms_show_choice
(
f
,
args
)
forms_show_choice
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
char
*
m1
,
*
m2
,
*
m3
,
*
b1
,
*
b2
,
*
b3
;
char
*
m1
,
*
m2
,
*
m3
,
*
b1
,
*
b2
,
*
b3
;
int
nb
;
int
nb
;
...
@@ -2300,8 +2320,8 @@ forms_show_choice(f, args)
...
@@ -2300,8 +2320,8 @@ forms_show_choice(f, args)
static
object
*
static
object
*
forms_show_question
(
f
,
args
)
forms_show_question
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
int
ret
;
int
ret
;
char
*
a
,
*
b
,
*
c
;
char
*
a
,
*
b
,
*
c
;
...
@@ -2315,8 +2335,8 @@ forms_show_question(f, args)
...
@@ -2315,8 +2335,8 @@ forms_show_question(f, args)
static
object
*
static
object
*
forms_show_input
(
f
,
args
)
forms_show_input
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
char
*
str
;
char
*
str
;
char
*
a
,
*
b
;
char
*
a
,
*
b
;
...
@@ -2334,8 +2354,8 @@ forms_show_input(f, args)
...
@@ -2334,8 +2354,8 @@ forms_show_input(f, args)
static
object
*
static
object
*
forms_file_selector
(
f
,
args
)
forms_file_selector
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
char
*
str
;
char
*
str
;
char
*
a
,
*
b
,
*
c
,
*
d
;
char
*
a
,
*
b
,
*
c
,
*
d
;
...
@@ -2354,8 +2374,8 @@ forms_file_selector(f, args)
...
@@ -2354,8 +2374,8 @@ forms_file_selector(f, args)
static
object
*
static
object
*
forms_file_selector_func
(
args
,
func
)
forms_file_selector_func
(
args
,
func
)
object
*
args
;
object
*
args
;
char
*
(
*
func
)();
char
*
(
*
func
)();
{
{
char
*
str
;
char
*
str
;
...
@@ -2370,24 +2390,24 @@ forms_file_selector_func(args, func)
...
@@ -2370,24 +2390,24 @@ forms_file_selector_func(args, func)
static
object
*
static
object
*
forms_get_directory
(
f
,
args
)
forms_get_directory
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
return
forms_file_selector_func
(
args
,
fl_get_directory
);
return
forms_file_selector_func
(
args
,
fl_get_directory
);
}
}
static
object
*
static
object
*
forms_get_pattern
(
f
,
args
)
forms_get_pattern
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
return
forms_file_selector_func
(
args
,
fl_get_pattern
);
return
forms_file_selector_func
(
args
,
fl_get_pattern
);
}
}
static
object
*
static
object
*
forms_get_filename
(
f
,
args
)
forms_get_filename
(
f
,
args
)
object
*
f
;
object
*
f
;
object
*
args
;
object
*
args
;
{
{
return
forms_file_selector_func
(
args
,
fl_get_filename
);
return
forms_file_selector_func
(
args
,
fl_get_filename
);
}
}
...
@@ -2395,6 +2415,8 @@ forms_get_filename(f, args)
...
@@ -2395,6 +2415,8 @@ forms_get_filename(f, args)
static
struct
methodlist
forms_methods
[]
=
{
static
struct
methodlist
forms_methods
[]
=
{
/* adm */
/* adm */
{
"make_form"
,
forms_make_form
},
{
"make_form"
,
forms_make_form
},
{
"activate_all_forms"
,
forms_activate_all_forms
},
{
"deactivate_all_forms"
,
forms_deactivate_all_forms
},
/* gl support wrappers */
/* gl support wrappers */
{
"qdevice"
,
forms_qdevice
},
{
"qdevice"
,
forms_qdevice
},
{
"unqdevice"
,
forms_unqdevice
},
{
"unqdevice"
,
forms_unqdevice
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment