Displaying 20 results from an estimated 76 matches for "dlg".
Did you mean:
dbg
2008 Jul 18
0
Retrieving data from a tcl /tk function
...ion, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall:
odalDialog <- function(title, question, entryInit, entryWidth = 20,
returnValOnCancel = "ID_CANCEL") {
dlg <- tktoplevel()
tkwm.deiconify(dlg)
tkgrab.set(dlg)
tkfocus(dlg)
tkwm.title(dlg, title)
textEntryVarTcl <- tclVar(paste(entryInit))
textEntryWidget <- tkentry(dlg, width = paste(entryWidth),
textvariable = textEntryVarTcl)
tkgrid(tklabel(dlg, text = &quo...
2009 Apr 14
0
disappearing dialog boxes when using tcltk
...lem.)
Millions of thanks!
Hua
##===============================================
## Add Dialog Box (with only "OK" button)
##===============================================
modalDialogOK <-
function(title,question,entryInit,entryWidth=10)
{
returnValOnCancel="ID_CANCEL"
dlg <- tktoplevel()
tkwm.deiconify(dlg)
tkgrab.set(dlg)
tkfocus(dlg)
tkwm.title(dlg,title)
textEntryVarTcl <- tclVar(paste(entryInit))
textEntryWidget <-
tkentry(dlg,width=paste(entryWidth),textvariable=textEntryVarTcl)
tkgrid(tklabel(dlg,text=" "))
tkgrid(tklab...
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across
something that kinda bothers me...
In order to implement validators you have to override the clone method.
The directors seems to be set up to specifically handle this situation.
However, whenever C++ calls back to the object''s methods the swig_get_up
function is returning false. It seems like swig_up
2013 Aug 03
1
tk + browser() can leave R unresponsive
...ng of the onOK body (e.g. in Vim run
<<:g/onOK/put ='browser()'>>). That is, transform
onOK <- function() {
res <- 1L + as.integer(tkcurselection(box))
cat("res is: ", res)
ans.select_list <<- choices[res]
tkgrab.release(dlg)
tkdestroy(dlg)
}
to:
onOK <- function() {
browser()
res <- 1L + as.integer(tkcurselection(box))
cat("res is: ", res)
ans.select_list <<- choices[res]
tkgrab.release(dlg)
tkdestroy(dlg)
}
4. Run 'instal...
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...nbsp  2007-03-23 17:00:12 UTC (rev 918)
</span><span class="lines">@@ -226,35 +226,36 @@
</span><span class="cx">
</span><span class="cx"> def on_set_colour(event)
</span><span class="cx"> dlg = Wx::ColourDialog.new(@frame)
</span><del>- dlg.set_title("Cololur Picker")
</del><ins>+ dlg.set_title("Colour Picker")
</ins><span class="cx">
</span><span class="cx"> return unless dlg.show_modal =...
2008 Oct 17
0
Wine release 1.0.1
...WindowPoints behavior in the process that owns the desktop window.
libwine: Add support for relocating MS-style imports that use OriginalFirstThunk.
ntdll: Hardcode the filesystem cluster size to avoid trouble on NFS.
ntdll: Preserve the 2K block size returned for CDROMs.
comdlg32: Merge Chinese resources into a single file.
comctl32: Rename the Chinese resources to comctl_Zh.rc.
ws2_32: Allow arbitrary-sized iovecs again in WSASendTo and WSARecvFrom.
Avoid exporting common symbols since that's broken on Mac OS X.
dnsapi: Fix compile without the...
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
...39;sample1.rb''
class DIA_Frame < DiaFrame
def on_init
set_affirmative_id(Wx::ID_YES)
set_escape_id(Wx::ID_NO)
end
end
class Main_Frame < MainFrame
def on_init
evt_close { confirm_closure }
evt_button(@m_butexit) {self.close}
end
def confirm_closure
dlg = DIA_Frame.new
if(dlg.show_modal==Wx::ID_YES) then
dlg.end_modal(Wx::ID_YES)
self.destroy
end
end
end
class MyApp < Wx::App
def on_init
main_frame = Main_Frame.new()
set_top_window(main_frame)
set_exit_on_frame_delete(true)
main_frame.show
end
end
a...
2010 May 18
1
GUI commands to call for a protein from protein data bank
...name of the protein, for example 1ly2, but it always ends up being
protein. My question is how to you make the input for read.pdb actually be
the input by the user and not protein code. I want to be able to type 1ly2,
and for the program to actually display the contents of 1ly2. Thanks!
Code:
dlg <- aDialog(items=list(
ProteinCode=stringItem("")
),
OK_handler=function(.) { # . is reference to dlg object
values <- .$to_R()
f <- function(ProteinCode)
pdb <- read.pdb("ProteinCode")
do.call(f, values)
}
)
dlg$make_gui()
--
View this message in context: http://r....
2007 Apr 13
0
[962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog, Panel, Frame].
...Resource_set
</span><span class="cx"> * "XmlResource#set_flags":#XmlResource_setflags
</span><span class="lines">@@ -177,8 +180,10 @@
</span><span class="cx">
</span><span class="cx"> Loads a dialog. _dlg_ points to a parent window (if any).
</span><span class="cx">
</span><del>- Boolean *load_dialog*(%(arg-type)Dialog% dlg, %(arg-type)Window% parent, %(arg-type)String% name)
</del><ins>+h3(#XmlResource_loaddialogsubclass). XmlResource#load_dialog_sub...
2012 Apr 24
0
help with GUI interface
If I have GUI as follows
how can I add a checkbox that when you click on it,it gives you
different files,
then when you click on that file it gives you the information you are
looking for,
instead of me browsing for a file how do i turn it to be a csv or xls
file check box.
dlg <- aDialog(items=list(
file=fileItem("", attr=list(
filter=list("CSV or txt"=list(
patterns=c("*.csv","*.txt")
),
"All files" = list(patterns=c("*"))
))),
header=trueFalseItem(T...
2016 May 30
2
[PATCH 0/2] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
... and a small initial patch which makes it easier to test virt-p2v
without having to start up a virtual machine.
There is still a bug in Gtk 3 where the GtkTextView on the final
(running) dialog ignores gtk_widget_set_size_request and so the window
appears just a single pixel high.
Rich.
2016 May 30
4
[PATCH v2 0/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This is basically the same as what I posted earlier today. The main
difference is I split out the GDK thread sychronization (removal of)
changes from the other Gtk 2/3 changes, which should make it a bit
easier to review.
Gtk 3 is still not quite perfect. Apart from the problem with the
GtkTextView noted before, there are also vertical alignment and
padding problems with labels in GtkGrid
2009 Sep 24
2
Running code after a modal dialog is shown
Hi all,
I''m looking for a way to get a block of code to execute once a modal
dialog has been displayed (via a call to show_modal.) I was hoping to
find some event that would fire when the window was shown, but the only
one that seemed vaguely promising (evt_window_create) seems to do nothing
at all, at least in my environment (Ruby 1.9.1 on Win32, wxruby 2.0.1.)
Here''s a
2006 Apr 30
4
renamed partial won''t render?
...ml are identical.
worklist.rhtml throws
undefined local variable or method `work''
Extracted source (around line #2):
1: <tr>
2: <td><%= link_to work.short_title, :action => ''edit'', :id =>
work %></td>
any ideas why?
TIA DLG
--
Posted via http://www.ruby-forum.com/.
2010 Jun 20
4
Microsoft Project 98 problem
I installed MS Project 98 in my wine-1.2-rc4. Almost all works fine but when I open Task Information dlg, go to Notes tab I got error dlg
[Image: http://img.photobucket.com/albums/v286/kontiky/3b6168a1.png ]
and MS Project is closed. In console at the same time is
Code:
fixme:richedit:IRichEditOle_fnQueryInterface 0x32734f0: unhandled interface {8d33f740-cf58-11ce-a89d-00aa006cadc5}
wine: Unhandle...
2017 Apr 27
3
recognise DW_AT_SUN_amd64_parmdump dwarf attribute
...-dev at lists.llvm.org>> wrote:
> sun created this tag for identifying functions that dumped their
> register arguments onto the stack.
>
> this is enough for llvm-dwarfdump to recognise and print the attribute.
>
> hopefully someone will commit it.
>
> cheers,
> dlg
>
> Index: include/llvm/Support/Dwarf.def
> ===================================================================
> --- include/llvm/Support/Dwarf.def (revision 301500)
> +++ include/llvm/Support/Dwarf.def (working copy)
> @@ -343,6 +343,8 @@
> HANDLE_DW_AT(0x2134, GN...
2003 Dec 01
0
No subject
...mso-font-pitch:variable;
mso-font-signature:131 0 0 0 9 0;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:7 0 0 0 19 0;}
@font-face
{font-family:"MS Shell Dlg";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-format:other;
mso-font-pitch:auto;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0...
2004 Nov 26
2
Tcl error - brace in argument?
Hi all,
Does anyone know a solution for this error ?
> tkwidget(dlg, "iwidgets::spinint", range="{0 23}")
Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class =
"tclObj") :
[tcl] wrong # args: should be ".31.1.19 configure -range {begin
end}".
Thanks,
Matthew
[[alter...
2008 Mar 30
0
javascript confirm function in FBJS
I''d like to add the :confirm option in the link_to_remote and replace
the missing confirm function with Facebook''s Dialogs.
function confirm(text) {
dlg = new Dialog(Dialog.DIALOG_CONTEXTUAL).showChoice(''Confirm
Request'', text , ''Yes'', ''No'');
dlg.onconfirm = function() { return true; };
dlg.oncancel = function() { return false; };
}
The above code doesn''t work because confirm needs to...
2017 Apr 28
1
recognise DW_AT_SUN_amd64_parmdump dwarf attribute
...ol, can you point me at an existing one that i can use as a reference?
Here's a very recent example:
https://reviews.llvm.org/D32618
>
>> Alternatively you can use the new yaml2obj tool that is being developed.
>
> ill try the first suggestion for now.
>
> cheers,
> dlg
>
>>
>> -- adrian
>>
>>>
>>> Adrian/Paul: Pondering this, any thoughts on how conflicts in the vendor extension range of attributes, forms, etc, should be resolved if they ever come up? (each vendor is free to define them as they wish, so it could be that...